Closed mithro closed 4 years ago
I managed to hide it with the :start-after:
option of literalinclude
as seen in https://github.com/SymbiFlow/python-symbiflow-v2x/pull/42/commits/646d3d249a95f8aae65efe8bfa51e2f7ee4f203e.
@daniellimws - It would be nice if there was a literalinclude
like directive that automatically detected the copyright header in the file and added the :start-after:
bit automatically. This could probably be done via a similar manner to https://github.com/mithro/sphinxcontrib-session
GitHubSphinx extension for displaying console and other sessions. - mithro/sphinxcontrib-session
@mithro Where would be a good place to implement this directive? Shall I add this feature into https://github.com/mithro/sphinxcontrib-session?
GitHubSphinx extension for displaying console and other sessions. - mithro/sphinxcontrib-session
@daniellimws I think as part of sphinxcontrib-verilog-diagrams
probably makes some sense? Otherwise maybe we need a new sphinxcontrib-fancyinclude
type project?
Alright sounds good, I'll add it to sphinxcontrib-verilog-diagrams
.
It would be nice to automatically skip the copyright header when displaying the verilog output into the Sphinx documentation.
Currently a verilog file like this;
You end up with the output which looks like this;
This is probably an issue + test needed in https://github.com/SymbiFlow/sphinxcontrib-verilog-diagrams