Skip to content

Commit

Permalink
Documentation: Optain License & KEMField Manual Without Duplication
Browse files Browse the repository at this point in the history
This commit aims to replace the license chapter with the License.md and adds a chapter for KEMField, including the manual.pdf.

To implement the changes, Sphinx-SimplePDF and m2r2 for inclusion of markdown in .rst files have been added.
  • Loading branch information
Gon-na committed Feb 13, 2024
1 parent 1d3f3b9 commit 6391ffd
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ jobs:
- uses: actions/checkout@v3

- name: Install dependencies
run: pip install sphinx_rtd_theme sphinx_design
run: pip install sphinx_rtd_theme sphinx_design m2r2 sphinx-simplepdf


- name: Build target "build"
run: cd Documentation/gh-pages && make github
Expand Down
3 changes: 2 additions & 1 deletion Documentation/gh-pages/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ github:
@rm -rf "$(HTMLDIR)"
@mv "$(BUILDDIR)/html" "$(HTMLDIR)"
@touch "$(HTMLDIR)/.nojekyll"

@mkdir "$(HTMLDIR)/kemfield"
@cp ../../KEMField/Documentation/manual/manual.pdf "$(HTMLDIR)/kemfield"
.PHONY: help github Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
Expand Down
10 changes: 10 additions & 0 deletions Documentation/gh-pages/source/KEMField_manual_link.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
KEMField
**********

See :download:`KEMField manual <../../../KEMField/Documentation/manual/manual.pdf>`.

With new pdf-include

.. pdf-include:: ./kemfield/manual.pdf

You can also download the manual :download:`here <../../../KEMField/Documentation/manual/manual.pdf>`.
5 changes: 4 additions & 1 deletion Documentation/gh-pages/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@
'sphinx.ext.mathjax',
'sphinx.ext.graphviz',
'sphinx_rtd_theme',
'sphinx_design'
'sphinx_design',
'm2r2',
'sphinx_simplepdf',

]

extlinks = {
Expand Down
5 changes: 3 additions & 2 deletions Documentation/gh-pages/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ Welcome to Kassiopeia's documentation!
Additional Simulation Tools <tools.rst>
Visualization Techniques <visualization.rst>
XML Bindings <bindings.rst>
License <license.rst>
KEMField <KEMField_manual_link.rst>
License <linktolicense.rst>
Authors <authors.rst>




Expand Down
3 changes: 3 additions & 0 deletions Documentation/gh-pages/source/linktolicense.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

.. mdinclude:: ../../../LICENSE.md

0 comments on commit 6391ffd

Please sign in to comment.