Skip to content

Commit

Permalink
This took way to long, no more symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicWC committed Jul 16, 2024
1 parent e3cf5dc commit f8c0a8d
Show file tree
Hide file tree
Showing 25 changed files with 60 additions and 76 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ jobs:
- name: Run Sphinx
run: >
sphinx-build
-M html Documentation HARK-docs
-M html . HARK-docs
-T
-c Documentation
-W
-j 1
Expand Down
3 changes: 0 additions & 3 deletions Documentation/_static/override-nbsphinx-gallery.css

This file was deleted.

28 changes: 21 additions & 7 deletions Documentation/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,28 @@
"sphinx.ext.todo",
# third-party extensions
"nbsphinx",
"nbsphinx_link",
"myst_parser",
"sphinx_copybutton",
"sphinx_design",
]


include_patterns = [
"Documentation**",
"index.rst",
] # Makes sure that only the file we want documented get documented
with open("example_notebooks//include_list", "r") as file:
include_patterns += file.readlines()
include_patterns = [
i.replace("\n", "") for i in include_patterns
] # Adds example notebooks

exclude_patterns = [
"_build",
"Thumbs.db",
".DS_Store",
"NARK",
"Documentation/_build",
"Documentation/Thumbs.db",
"Documentation/.DS_Store",
"Documentation/NARK",
"Documentation/index_core.rst", # Prevents sphinx from getting confused
]

language = "en"
Expand All @@ -65,7 +76,7 @@

# HTML writer configuration
html_theme = "pydata_sphinx_theme"
html_static_path = ["_static"]
html_static_path = []
html_css_files = [
"override-nbsphinx-gallery.css",
]
Expand Down Expand Up @@ -156,4 +167,7 @@
# nbsphinx configuration
nbsphinx_execute = "never" # notebooks are executed via ``nb_exec.py``

suppress_warnings = ["config.cache"]
suppress_warnings = [
"toc.excluded", # Suppress warnings about documents not included in the toctree
"nbsphinx.notebooktitle", # Suppress warnings about notebooks not having titles
]
3 changes: 0 additions & 3 deletions Documentation/example_notebooks/ConsPortfolioModel.nblink

This file was deleted.

3 changes: 0 additions & 3 deletions Documentation/example_notebooks/GenIncProcessModel.nblink

This file was deleted.

3 changes: 0 additions & 3 deletions Documentation/example_notebooks/Gentle-Intro-To-HARK.nblink

This file was deleted.

1 change: 0 additions & 1 deletion Documentation/example_notebooks/HARK-struct-2.png

This file was deleted.

1 change: 0 additions & 1 deletion Documentation/example_notebooks/HARK-struct-3.png

This file was deleted.

1 change: 0 additions & 1 deletion Documentation/example_notebooks/HARK-struct-4.png

This file was deleted.

This file was deleted.

13 changes: 13 additions & 0 deletions Documentation/example_notebooks/Include_list
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
examples/Gentle-Intro/Gentle-Intro-To-HARK.ipynb
examples/ConsIndShockModel/PerfForesightConsumerType.ipynb
examples/ConsIndShockModel/IndShockConsumerType.ipynb
examples/ConsIndShockModel/KinkedRconsumerType.ipynb
examples/ConsPortfolioModel/example_ConsPortfolioModel.ipynb
examples/GenIncProcessModel/GenIncProcessModel.ipynb
examples/LifecycleModel/LifecycleModel.ipynb
examples/HowWeSolveIndShockConsumerType/HowWeSolveIndShockConsumerType.ipynb
examples/Journeys/Journey-PhD.ipynb
examples/ConsNewKeynesianModel/Transition_Matrix_Example.ipynb
examples/ConsNewKeynesianModel/Jacobian_Example.ipynb
examples/ConsNewKeynesianModel/KS-HARK-presentation.ipynb
examples/ConsNewKeynesianModel/SSJ_example.ipynb
3 changes: 0 additions & 3 deletions Documentation/example_notebooks/IndShockConsumerType.nblink

This file was deleted.

3 changes: 0 additions & 3 deletions Documentation/example_notebooks/Jacobian_Example.nblink

This file was deleted.

3 changes: 0 additions & 3 deletions Documentation/example_notebooks/Journey-PhD.nblink

This file was deleted.

3 changes: 0 additions & 3 deletions Documentation/example_notebooks/KS-HARK-presentation.nblink

This file was deleted.

3 changes: 0 additions & 3 deletions Documentation/example_notebooks/KinkedRconsumerType.nblink

This file was deleted.

3 changes: 0 additions & 3 deletions Documentation/example_notebooks/LifecycleModel.nblink

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions Documentation/example_notebooks/SSJ_Example.nblink

This file was deleted.

This file was deleted.

16 changes: 8 additions & 8 deletions Documentation/index.rst → Documentation/index_core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ Econ-ARK documentation -- HARK
:maxdepth: 1
:hidden:

Guides <guides/index>
Overview & Examples <overview/index>
Reference <reference/index>
Guides <Documentation/guides/index>
Overview & Examples <Documentation/overview/index>
Reference <Documentation/reference/index>


**Useful links**:
:doc:`Install HARK <guides/installation>` |
:doc:`Install HARK <Documentation/guides/installation>` |
`Source Repository <https://github.com/Econ-ARK/HARK>`__ |
`Issues & Ideas <https://github.com/Econ-ARK/HARK/issues>`__

Expand Down Expand Up @@ -44,7 +44,7 @@ you might want to look at the `DemARK

+++

.. button-ref:: guides/quick_start
.. button-ref:: Documentation/guides/quick_start
:ref-type: doc
:color: info
:click-parent:
Expand All @@ -63,7 +63,7 @@ you might want to look at the `DemARK

+++

.. button-ref:: overview/index
.. button-ref:: Documentation/overview/index
:ref-type: doc
:color: info
:click-parent:
Expand All @@ -83,7 +83,7 @@ you might want to look at the `DemARK

+++

.. button-ref:: reference/index
.. button-ref:: Documentation/reference/index
:ref-type: doc
:color: info
:click-parent:
Expand All @@ -105,7 +105,7 @@ you might want to look at the `DemARK

+++

.. button-ref:: guides/contributing
.. button-ref:: Documentation/guides/contributing
:ref-type: doc
:color: info
:click-parent:
Expand Down
2 changes: 1 addition & 1 deletion Documentation/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=_build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% -c . ..
set I18NSPHINXOPTS=%SPHINXOPTS% .
if NOT "%PAPER%" == "" (
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
Expand Down
26 changes: 13 additions & 13 deletions Documentation/overview/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ Overview
:caption: Examples
:maxdepth: 1

../example_notebooks/Gentle-Intro-To-HARK
../example_notebooks/PerfForesightConsumerType
../example_notebooks/IndShockConsumerType
../example_notebooks/KinkedRconsumerType
../example_notebooks/ConsPortfolioModel
../example_notebooks/GenIncProcessModel
../example_notebooks/LifecycleModel
../example_notebooks/HowWeSolveIndShockConsumerType
../example_notebooks/Journey-PhD
../example_notebooks/Transition_Matrix_Example
../example_notebooks/Jacobian_Example
../example_notebooks/KS-HARK-presentation
../example_notebooks/SSJ_Example
../../examples/Gentle-Intro/Gentle-Intro-To-HARK.ipynb
../../examples/ConsIndShockModel/PerfForesightConsumerType.ipynb
../../examples/ConsIndShockModel/IndShockConsumerType.ipynb
../../examples/ConsIndShockModel/KinkedRconsumerType.ipynb
../../examples/ConsPortfolioModel/example_ConsPortfolioModel.ipynb
../../examples/GenIncProcessModel/GenIncProcessModel.ipynb
../../examples/LifecycleModel/LifecycleModel.ipynb
../../examples/HowWeSolveIndShockConsumerType/HowWeSolveIndShockConsumerType.ipynb
../../examples/Journeys/Journey-PhD.ipynb
../../examples/ConsNewKeynesianModel/Transition_Matrix_Example.ipynb
../../examples/ConsNewKeynesianModel/Jacobian_Example.ipynb
../../examples/ConsNewKeynesianModel/KS-HARK-presentation.ipynb
../../examples/ConsNewKeynesianModel/SSJ_example.ipynb

.. toctree::
:hidden:
Expand Down
1 change: 1 addition & 0 deletions index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. include:: Documentation/index_core.rst
2 changes: 1 addition & 1 deletion requirements/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ipython # for the Pygments lexer
myst-parser>=2
nbsphinx>=0.8
nbsphinx-link

# theme requirements
pydata-sphinx-theme
sphinx>=6.1
Expand Down

0 comments on commit f8c0a8d

Please sign in to comment.