Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
glowkeeper committed Dec 30, 2020
1 parent 4feea97 commit c44b0f7
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ node_modules/

# docs
docs/_build
docs/_static
19 changes: 19 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Minima Documentation

This directory contains documentation for _minima.js_.

The files use [reStructuredText](https://rest-sphinx-memo.readthedocs.io/en/latest/ReST.html), targeted at [sphinx](https://www.sphinx-doc.org/en/master/).

If you do not have sphinx installed, then:

```
pip install sphinx
```

Once sphinx installed, generate the docs:

```
make html
```

That will create a static documentation website in _./build/html_.
7 changes: 7 additions & 0 deletions docs/api/init.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
####
Init
####

.. _apiInit:

`Minima.init` allows you to specify a callback that enables you to monitor Minima events.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
project = 'minima.js'
copyright = '2020, Minima Global'
author = 'Steve Huckle'

master_doc = 'index'

# -- General configuration ---------------------------------------------------

Expand Down
7 changes: 3 additions & 4 deletions docs/initialise.rst → docs/gettingStarted/initialise.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
Initialising Minima
###################

.. _gettingStartedInitialise:

.. _initialise minima.js:

Initialise Example
==================
Example
=======

::

Expand Down
2 changes: 1 addition & 1 deletion docs/install.rst → docs/gettingStarted/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Install minima.js
#################

.. _install minima.js:
.. _gettingStartedInstall:

Install
=======
Expand Down
9 changes: 5 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ Contents

.. toctree::
:maxdepth: 2
:caption: Basics:
:caption: Getting Started:

install.rst
gettingStarted/install.rst
gettingStarted/initialise.rst

.. toctree::
:maxdepth: 2
:caption: API Description:
:caption: API:

initialise.rst
api/init.rst

0 comments on commit c44b0f7

Please sign in to comment.