init commit

This commit is contained in:
rskntroot
2024-05-29 07:29:07 +00:00
parent 3783db11a9
commit a014501ade
10 changed files with 175 additions and 2 deletions

28
docs/source/conf.py Normal file
View File

@@ -0,0 +1,28 @@
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = 'Rskio'
copyright = '2024, rskntroot'
author = 'rskntroot'
release = '1.0.0'
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
# Markdown Support - https://www.sphinx-doc.org/en/master/usage/markdown.html
extensions = ['myst_parser']
templates_path = ['_templates']
exclude_patterns = []
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
# PyData Theme - https://pydata-sphinx-theme.readthedocs.io/en/stable/index.html (0.15.3)
html_theme = "pydata_sphinx_theme"
html_static_path = ['_static']

View File

@@ -0,0 +1,40 @@
# Example
## This is an Example Markdown File
### sphinx-docs
Sphinx Docs can be described as "website as code" similar to "infrastructure as code".
Currently, this site is built out with the following components:
```
docker:
img: python:alpine
os:
apk: py3-sphinx
python:
pip:
- myst-parser
- pydata-sphinx-theme
```
Sphinx is used generate the html for site which can then be hosted separately:
Generate Command:
```
make html
```
Hosting:
```
docker:
img: nginx:latest
```
#### Testing
```
cd /opt/docker
docker run -it --rm -v ./docs/build/html:/opt/sphinx/html/:ro -v ./nginx/etc/conf.d/:/etc/nginx/conf.d/:ro -p 9999:80 nginx:latest
```

21
docs/source/index.rst Normal file
View File

@@ -0,0 +1,21 @@
.. Rskio documentation master file, created by
sphinx-quickstart on Wed May 29 05:30:27 2024.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Rskio
=====
.. toctree::
:maxdepth: 2
:caption: Contents:
./docs/example.md
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`