Skip to content

Commit

Permalink
Hides dynamically created TOCs for examples and microservices
Browse files Browse the repository at this point in the history
Signed-off-by: Putnam, Kevin <kevin.putnam@intel.com>
  • Loading branch information
intelkevinputnam committed Oct 29, 2024
1 parent 909657b commit 26dadf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/maketoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ls -d1 */ | \
print("\n.. comment maketoc: ignoring " dirname " directory\n\n"); next}\
title=dirname " Application"; \
print title;gsub(/./,"*",title); print title; \
print "\n.. rst-class:: rst-columns\n\n.. toctree::\n :maxdepth: 1\n :glob:\n\n /" \
print "\n.. rst-class:: rst-columns\n\n.. toctree::\n :hidden:\n :maxdepth: 1\n :glob:\n\n /" \
repo "/" dirname "/*\n /" \
repo "/" dirname "/**/*\n";}' > ../docs/_build/rst/examples/examples.txt

Expand All @@ -55,7 +55,7 @@ ls -d1 [a-zA-Z]*/ | \
-v repo="GenAIComps" \
-e '{dirname=substr($0,1,length($0)-1); title=toupper(substr(dirname,1,1)) substr(dirname,2) " Microservice"; \
print title;gsub(/./,"*",title); print title; \
print "\n.. rst-class:: rst-columns\n\n.. toctree::\n :maxdepth: 1\n :glob:\n\n /" \
print "\n.. rst-class:: rst-columns\n\n.. toctree::\n :hidden:\n :maxdepth: 1\n :glob:\n\n /" \
repo "/comps/" dirname "/*\n /" \
repo "/comps/" dirname "/**/*\n";}' > ../../docs/_build/rst/microservices/microservices.txt

Expand Down

0 comments on commit 26dadf7

Please sign in to comment.