Skip to content

Commit

Permalink
Get diff working
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWilsn committed Jul 25, 2023
1 parent 58efcf6 commit a5d0e56
Show file tree
Hide file tree
Showing 3 changed files with 407 additions and 169 deletions.
9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ context = [
discovery = [
"docc.search.discover",
"docc.html.discover",
"docc.cst.discover",
"docc.python.discover",
"ethereum_spec_tools.docc.discover",
"docc.listing.discover",
]
Expand All @@ -39,7 +39,8 @@ build = [
]

transform = [
"docc.cst.transform",
"docc.python.transform",
"docc.verbatim.transform",
"docc.mistletoe.transform",
"ethereum_spec_tools.docc.fix-indexes",
"ethereum_spec_tools.docc.minimize-diffs",
Expand All @@ -48,12 +49,12 @@ transform = [
"docc.html",
]

[tool.docc.plugins."docc.cst.transform"]
[tool.docc.plugins."docc.python.transform"]
excluded_references = [
"ethereum_spec_tools.lint.lints", # This is a namespace package.
]

[tool.docc.plugins."docc.cst.discover"]
[tool.docc.plugins."docc.python.discover"]
paths = [
"src",
]
Expand Down
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ docc.plugins =

docc.plugins.html =
ethereum_spec_tools.docc:DiffNode = ethereum_spec_tools.docc:render_diff
ethereum_spec_tools.docc:BeforeNode = ethereum_spec_tools.docc:render_before
ethereum_spec_tools.docc:AfterNode = ethereum_spec_tools.docc:render_after
ethereum_spec_tools.docc:BeforeNode = ethereum_spec_tools.docc:render_before_after
ethereum_spec_tools.docc:AfterNode = ethereum_spec_tools.docc:render_before_after

[options.extras_require]
test =
Expand All @@ -173,7 +173,7 @@ lint =

doc =
docc @ git+https://github.com/SamWilsn/docc@master#egg=docc
graphtage>=0.2.7,<0.3.0
fladrif>=0.1.0,<0.2.0

doc-autobuild =
sphinx-autobuild==2021.3.14
Expand Down
Loading

0 comments on commit a5d0e56

Please sign in to comment.