3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 09:05:32 +00:00

Adding custom domain for cmdref

This commit is contained in:
Krystine Sherwin 2023-08-08 11:51:57 +12:00
parent d8b8880ad6
commit 8203a01ba9
No known key found for this signature in database
6 changed files with 256 additions and 8 deletions

View file

@ -786,9 +786,8 @@ struct HelpPass : public Pass {
fprintf(f, ".. raw:: latex\n\n \\begin{comment}\n\n");
// render html
fprintf(f, ":code:`yosys> help %s`\n", cmd.c_str());
fprintf(f, "--------------------------------------------------------------------------------\n\n");
fprintf(f, ".. container:: cmdref\n");
fprintf(f, ".. cmd:def:: %s\n", cmd.c_str());
fprintf(f, " :title: %s\n\n", title.c_str());
std::stringstream ss;
std::string textcp = text;
ss << text;