Skip to content

Commit e9b803b

Browse files
Docs: Use formatted cmd ref in pdf
Fixes missing links in body and `??` in tag/command index. Update synth.rst to match.
1 parent 68c7fc4 commit e9b803b

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

docs/source/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ available, go to :ref:`commandindex`.
2323
- Search bar with live drop down suggestions for matching on title /
2424
autocompleting commands
2525
- Scroll the left sidebar to the current location on page load
26-
- Also the formatting/linking in pdf is broken
26+
- Also the formatting in pdf uses link formatting instead of code formatting
2727

2828
.. todolist::
2929

docs/source/using_yosys/synthesis/synth.rst

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ The following commands are executed by the :cmd:ref:`prep` command:
4242

4343
.. literalinclude:: /cmd/prep.rst
4444
:start-at: begin:
45-
:end-before: .. raw:: latex
4645
:dedent:
4746

4847
:doc:`/getting_started/example_synth` covers most of these commands and what

kernel/register.cc

-12
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,6 @@ struct HelpPass : public Pass {
781781
fprintf(f, "%s", title_line.c_str());
782782
fprintf(f, "%s - %s\n", cmd.c_str(), title.c_str());
783783
fprintf(f, "%s\n", title_line.c_str());
784-
fprintf(f, ".. raw:: latex\n\n \\begin{comment}\n\n");
785784

786785
// render html
787786
fprintf(f, ".. cmd:def:: %s\n", cmd.c_str());
@@ -851,17 +850,6 @@ struct HelpPass : public Pass {
851850

852851
blank_count = 0;
853852
}
854-
fputc('\n', f);
855-
856-
// render latex
857-
fprintf(f, ".. raw:: latex\n\n \\end{comment}\n\n");
858-
fprintf(f, ".. only:: latex\n\n");
859-
fprintf(f, " ::\n\n");
860-
std::stringstream ss2;
861-
ss2 << textcp;
862-
for (std::string line; std::getline(ss2, line, '\n');) {
863-
fprintf(f, " %s\n", line.c_str());
864-
}
865853
fclose(f);
866854
}
867855
void execute(std::vector<std::string> args, RTLIL::Design*) override

0 commit comments

Comments
 (0)