Skip to content

Commit

Permalink
Add MathJax to Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
li3zhen1 committed Oct 22, 2023
1 parent f4611b5 commit a9a004b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
15 changes: 1 addition & 14 deletions DocPostprocess.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,7 @@ do {
font-variation-settings: 'wght' 600, 'opsz' 24!important;
}
</style>
<script>
MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']]
},
svg: {
fontCache: 'global'
},
loader: {load: ['ui/lazy']}
};
</script>
<script type="text/javascript" id="MathJax-script" async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js">
</script>
""")

try htmlString.write(toFile: indexPath, atomically: false, encoding: .utf8)
Expand Down
8 changes: 3 additions & 5 deletions Sources/ForceSimulation/ForceSimulation.docc/Documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ Run force simulation on any dimension.

## Overview

ForceSimulation is a force simulation library that enables you to create any dimensional simulation with velocity Verlet integration.

The basic concepts of simulations and forces can be found here: [Force simulations - D3](https://d3js.org/d3-force/simulation).
`ForceSimulation` is a force simulation library that enables you to create any dimensional simulation with velocity Verlet integration. The basic concepts of simulations and forces can be found here: [Force simulations - D3](https://d3js.org/d3-force/simulation).


@Image(source: "ForceDirectedGraph.png", alt: "An example of 2D force directied graph.")
Expand All @@ -24,10 +22,10 @@ The basic concepts of simulations and forces can be found here: [Force simulatio
* ``Simulation``

### Creating forces in a simulation

* ``CenterForce``
* ``CollideForce``
* ``LinkForce``
* ``ManyBodyForce``
* ``DirectionForce``
* ``RadialForce``
* ``ForceLike``
* ``RadialForce``

0 comments on commit a9a004b

Please sign in to comment.