Skip to content

Commit

Permalink
docs: include readme as main page in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Melkor333 committed Dec 19, 2024
1 parent f705541 commit 70e076a
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 63 deletions.
9 changes: 7 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = [
'myst_parser', # No need to add all click files manually to TO
'myst_parser',
'sphinx.ext.autosectionlabel',
'sphinx.ext.autodoc'
'sphinx.ext.autodoc',
]
myst_enable_extensions = [
"linkify",
"replacements",
"smartquotes",
]

# For autodoc
Expand Down
9 changes: 2 additions & 7 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,8 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Pyaptly documentation
=====================

Add your content using ``reStructuredText`` syntax. See the
`reStructuredText <https://www.sphinx-doc.org/en/master/usage/restructuredtext/index.html>`_
documentation for details.

.. include:: README.md
:parser: myst_parser.sphinx_

.. toctree::
:maxdepth: 3
Expand Down
144 changes: 90 additions & 54 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ python-lsp-ruff = "^2.2.0"
sphinx = "^8.1.3"
myst-parser = "^4.0.0"
sphinx-rtd-theme = "^3.0.1"
linkify-it-py = "^2.0.3"

[tool.coverage.run]
omit = ["pyaptly/tomli_w/_writer.py"]
Expand Down

0 comments on commit 70e076a

Please sign in to comment.