Skip to content

Commit

Permalink
Refactor docs
Browse files Browse the repository at this point in the history
  • Loading branch information
arxyzan committed Aug 19, 2023
1 parent 655f1e2 commit 4917b2b
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ jobs:
- uses: actions/setup-python@v3
- name: Install dependencies
run: |
pip install sphinx sphinx_rtd_theme furo
pip install sphinx sphinx_rtd_theme furo myst-parser
- name: Sphinx build
run: |
sphinx-apidoc -H Hezar -o docs/source hezar/
sphinx-build docs _build
- name: Deploy
Expand Down
17 changes: 16 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
"sphinx.ext.mathjax",
"myst_parser",
"sphinx.ext.viewcode",
"sphinx.ext.autosummary",
"sphinx.ext.napoleon",
Expand All @@ -25,7 +26,21 @@
templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']


myst_enable_extensions = [
"amsmath",
"attrs_inline",
"colon_fence",
"deflist",
"dollarmath",
"fieldlist",
"html_admonition",
"html_image",
"replacements",
"smartquotes",
"strikethrough",
"substitution",
"tasklist",
]

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
Expand Down
15 changes: 1 addition & 14 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
.. Hezar documentation master file, created by
sphinx-quickstart on Thu Aug 17 20:32:47 2023.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to Hezar's documentation!
=================================

.. toctree::
:maxdepth: 2
:caption: Contents:



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

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
tutorial/index.rst
1 change: 1 addition & 0 deletions docs/tutorial/datasets.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Datasets
11 changes: 11 additions & 0 deletions docs/tutorial/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Tutorial
========
.. toctree::
:maxdepth: 2

overview.md
installation.md
models.md
datasets.md
training.md
preprocessors.md
1 change: 1 addition & 0 deletions docs/tutorial/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Installation
1 change: 1 addition & 0 deletions docs/tutorial/models.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Models
3 changes: 3 additions & 0 deletions docs/tutorial/overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Overview


1 change: 1 addition & 0 deletions docs/tutorial/preprocessors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Preprocessors
1 change: 1 addition & 0 deletions docs/tutorial/training.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Training models

0 comments on commit 4917b2b

Please sign in to comment.