Skip to content

Commit

Permalink
Fix broken doc links
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-edward committed Jul 28, 2024
1 parent d24624c commit 4544600
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 6 additions & 4 deletions build_docs.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
nim doc --index:only --project --d:nimPreviewSlimSystem --outdir:"./docs/htmldocs" ./src/box2d.nim
nim md2html --index:only --project --d:nimPreviewSlimSystem --outdir:"./docs/htmldocs" ./docs/index.md
cd ./src

nim doc --project --d:nimPreviewSlimSystem --outdir:"./docs/htmldocs" ./src/box2d.nim
nim md2html --project --d:nimPreviewSlimSystem --outdir:"./docs/htmldocs" ./docs/index.md
nim doc --index:only --project --d:nimPreviewSlimSystem --outdir:"../docs/htmldocs" box2d.nim
nim md2html --index:only --project --d:nimPreviewSlimSystem --outdir:"../docs/htmldocs" ./docs/index.md

nim doc --project --d:nimPreviewSlimSystem --outdir:"../docs/htmldocs" box2d.nim
nim md2html --project --d:nimPreviewSlimSystem --outdir:"../docs/htmldocs" ../docs/index.md
6 changes: 2 additions & 4 deletions nimdoc.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ doc.body_toc_group = """
</div>
<div id="global-links">
<ul class="simple-boot">
<li><a href="index.html">Home</a></li>
<li><a href="https://jon-edward.github.io/box2d.nim/index.html">Home</a></li>
<li><a id="indexLink" href="$theindexhref">Index</a></li>
<li><a href="box2d/wrapper.html">Reference</a></li>
<li><a href="https://jon-edward.github.io/box2d.nim/box2d/wrapper.html">Reference</a></li>
<li><a href="https://github.com/jon-edward/box2d.nim/tree/main/examples" target="_blank">Examples</a></li>
</ul>
</div>
Expand Down Expand Up @@ -48,8 +48,6 @@ doc.file = """
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>$title</title>

<base href="https://jon-edward.github.io/box2d.nim/">

<!-- Google fonts -->
<link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
Expand Down

0 comments on commit 4544600

Please sign in to comment.