Skip to content

Commit

Permalink
Restructure navigation (#1302)
Browse files Browse the repository at this point in the history
* Fix Markdown links

* Fix Markdown header levels

* Fix Markdown footnotes

* Switch Markdown parser to MyST

* Fix references in toctrees

* Fix title underline length

* Remove out of date instructions

* Ignore Numba deprecation warnings

* Fix ConsRiskyContribModel module docstring

* Fix section underline lengths in docstrings

* Escape inline markup (``*``)

* Escape LaTeX macros in docstrings

* Add link to Fashion Victim, from before it was removed

* Fix mathematical markup in notebooks

* Fix bullet points markup

* Fix spacing for sections in ConsIndShockModel.py

* Ignore the NARK directory

* Fix the duplicate object description warning

* Enable failing on warnings during documentation rendering in GitHub Actions

* Restructure navigation

* Add orphan Tools & Models index pages

* Fix table of contents
  • Loading branch information
AA-Turner authored Jul 14, 2023
1 parent fdab7e7 commit 2209109
Show file tree
Hide file tree
Showing 12 changed files with 108 additions and 92 deletions.
File renamed without changes.
15 changes: 15 additions & 0 deletions Documentation/guides/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Guides
======

.. toctree::
:caption: Usage
:maxdepth: 1

quick_start
installation

.. toctree::
:caption: Development
:maxdepth: 1

contributing
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Installing HARK
# HARK installation guide

HARK is an open source project written in Python. It's compatible with both Python
2 and 3, and with the Anaconda distributions of python 2 and 3.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Quick Start
# Quick Start Guide

## Installing HARK

Expand Down Expand Up @@ -143,4 +143,4 @@ To check that everything has been set up correctly, run HARK's tests with `pytho

To learn more about how to use HARK, check the next sections in this documentation, in particular the jupyter notebooks.

For help making changes to HARK, check out our [contributing guide](contributing/CONTRIBUTING.md).
For help making changes to HARK, check out our [contributing guide](contributing.md).
50 changes: 14 additions & 36 deletions Documentation/index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
Welcome to HARK's documentation!
================================
Econ-ARK documentation -- HARK
===============================

.. toctree::
:maxdepth: 1
:hidden:

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

Heterogenous Agents Resources & toolKit (HARK) is a toolkit for the structural modeling of economic choices of optimizing and non-optimizing heterogeneous agents.

Heterogenous Agents Resources & toolKit (HARK)
is a toolkit for the structural modeling of economic choices
of optimizing and non-optimizing heterogeneous agents.

HARK is software written in Python.
This is the documentation for that software.
Expand All @@ -12,36 +23,3 @@ or are contributing to the core software.
If you are a student trying to learn economics concepts,
you might want to look at the `DemARK
<https://github.com/econ-ark/DemARK/>`_ project.

.. toctree::
:maxdepth: 1
:caption: Documentation

introduction
quick-start
ARKitecture
contributing/CONTRIBUTING.md
contributing/Installation_instruction.md
reference/index
CHANGELOG
license

.. toctree::
:maxdepth: 1

example_notebooks/Gentle-Intro-To-HARK.ipynb
example_notebooks/PerfForesightConsumerType.ipynb
example_notebooks/IndShockConsumerType.ipynb
example_notebooks/KinkedRconsumerType.ipynb
example_notebooks/ConsPortfolioModel.ipynb
example_notebooks/GenIncProcessModel.ipynb
example_notebooks/LifecycleModel.ipynb
example_notebooks/HowWeSolveIndShockConsumerType.ipynb
example_notebooks/Journey-PhD.ipynb

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
File renamed without changes.
30 changes: 30 additions & 0 deletions Documentation/overview/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Overview
========

.. toctree::
:caption: Introduction to HARK
:maxdepth: 1

introduction
ARKitecture

.. toctree::
:caption: Examples
:maxdepth: 1

../example_notebooks/Gentle-Intro-To-HARK.ipynb
../example_notebooks/PerfForesightConsumerType.ipynb
../example_notebooks/IndShockConsumerType.ipynb
../example_notebooks/KinkedRconsumerType.ipynb
../example_notebooks/ConsPortfolioModel.ipynb
../example_notebooks/GenIncProcessModel.ipynb
../example_notebooks/LifecycleModel.ipynb
../example_notebooks/HowWeSolveIndShockConsumerType.ipynb
../example_notebooks/Journey-PhD.ipynb

.. toctree::
:hidden:
:caption: Extras

../CHANGELOG
../license
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Introduction
# Introduction to HARK

If you are willing to risk some mild psychological trauma, conjure to mind your first experience of hand-coding a structural economic model. Your clunky effort probably built on legacy code provided by an adviser or colleague -- which itself came from who-knows-what apocryphal sources. Efforts to combine elements from one model with those from another were likely frustrated by the ''Tower of Babel'' problem: Code from one source could not ''speak'' to code from another without your own intermediation as a translator, possibly between two unfamiliar languages and aided only by oracular comments that, at best, made sense only in the context of other (now missing) code.

Expand Down
22 changes: 4 additions & 18 deletions Documentation/reference/ConsumptionSaving/index.rst
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
Consumption Saving
--------------------
:orphan:

.. toctree::
:maxdepth: 3
Consumption Saving
==================

ConsAggShockModel
ConsGenIncProcessModel
ConsIndShockModel
ConsIndShockModelFast
ConsLaborModel
ConsMarkovModel
ConsMedModel
ConsPortfolioFrameModel
ConsPortfolioModel
ConsPrefShochModel
ConsRepAgentModel
ConsRiskyAssetModel
ConsRiskyContribModel
TractableBufferStockModel
See :doc:`../index`.
46 changes: 34 additions & 12 deletions Documentation/reference/index.rst
Original file line number Diff line number Diff line change
@@ -1,18 +1,40 @@
API Documentation
==================

Tools
--------
API Reference
=============

.. toctree::
:maxdepth: 3

tools/index
:caption: Tools
:maxdepth: 1

Models
--------
tools/core
tools/dcegm
tools/distribution
tools/econforgeinterp
tools/estimation
tools/frame
tools/helpers
tools/interpolation
tools/numba_tools
tools/parallel
tools/rewards
tools/simulation
tools/utilities
tools/validators

.. toctree::
:maxdepth: 3
:caption: Models
:maxdepth: 1

ConsumptionSaving/index
ConsumptionSaving/ConsAggShockModel
ConsumptionSaving/ConsGenIncProcessModel
ConsumptionSaving/ConsIndShockModel
ConsumptionSaving/ConsIndShockModelFast
ConsumptionSaving/ConsLaborModel
ConsumptionSaving/ConsMarkovModel
ConsumptionSaving/ConsMedModel
ConsumptionSaving/ConsPortfolioFrameModel
ConsumptionSaving/ConsPortfolioModel
ConsumptionSaving/ConsPrefShochModel
ConsumptionSaving/ConsRepAgentModel
ConsumptionSaving/ConsRiskyAssetModel
ConsumptionSaving/ConsRiskyContribModel
ConsumptionSaving/TractableBufferStockModel
22 changes: 4 additions & 18 deletions Documentation/reference/tools/index.rst
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
Tools
-----
:orphan:

.. toctree::
:maxdepth: 3
Tools
=====

core
dcegm
distribution
econforgeinterp
estimation
frame
helpers
interpolation
numba_tools
parallel
rewards
simulation
utilities
validators
See :doc:`../index`.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,10 @@ If you are worried or don’t know how to start, you can always reach out to the

**After your first contribution please let us know and we will add you to the Contributors list below!**

To install for development see the [Quickstart Guide](https://github.com/econ-ark/HARK/blob/master/Documentation/quick-start.md).
To install for development see the [Quickstart Guide](https://docs.econ-ark.org/guides/quick_start.html).

For more information on contributing to HARK please see [CONTRIBUTING.md](https://github.com/econ-ark/HARK/blob/master/Documentation/contributing/CONTRIBUTING.md).

Collaborators follow the [COLLABORATOR_GUIDE](https://github.com/econ-ark/HARK/blob/master/Documentation/contributing/CONTRIBUTING.md#contributing-guide) in maintaining the Econ-ARK project.
For more information on contributing to HARK please see [the contributing guide](https://docs.econ-ark.org/guides/contributing.html).
This is the guide that collaborators follow in maintaining the Econ-ARK project.

## Disclaimer

Expand Down

0 comments on commit 2209109

Please sign in to comment.