Skip to content

Commit

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

nim doc --project --d:nimPreviewSlimSystem --outdir:"./docs/htmldocs" ./src/box2d.nim
nim doc --project --d:nimPreviewSlimSystem --outdir:"./docs/htmldocs" ./src/box2d/wrapper.nim
nim md2html --project --d:nimPreviewSlimSystem --outdir:"./docs/htmldocs" ./docs/index.md
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
===================================

.. contents::
.. importdoc:: wrapper.nim
.. importdoc:: box2d/wrapper

# Welcome

Expand Down
4 changes: 3 additions & 1 deletion nimdoc.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ doc.body_toc_group = """
<ul class="simple-boot">
<li><a href="index.html">Home</a></li>
<li><a id="indexLink" href="$theindexhref">Index</a></li>
<li><a href="wrapper.html">Reference</a></li>
<li><a href="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,6 +48,8 @@ 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 d24624c

Please sign in to comment.