diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000..72e839d --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,15 @@ +version: 2 + +build: + os: ubuntu-22.04 + tools: + python: "3.12" + +sphinx: + configuration: docs/conf.py + +python: + install: + - requirements: docs/requirements.txt + - method: pip + path: . diff --git a/README.md b/README.md index 2fcb536..2f5f811 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,10 @@
PyDOM is a Python library that allows you to create web pages using a declarative syntax. diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css new file mode 100644 index 0000000..ad5d9e7 --- /dev/null +++ b/docs/_static/css/custom.css @@ -0,0 +1,30 @@ +html[data-theme="light"] { + --pst-color-primary: #564fa1; + --pst-color-secondary: #7f88c3; + --pst-color-secondary-hover: #e6e6e6; + --pst-color-secondary-highlight: #7f3f98 ; +} + +html[data-theme="dark"] { + --pst-color-primary: #7f88c3; + --pst-color-secondary: #f7f7f7; + --pst-color-secondary-hover: #e6e6e6; + --pst-color-secondary-highlight: #7f3f98; +} + +.navbar-brand { + gap: 1rem; +} + +.navbar-brand img { + height: 85%; +} + +.navbar-item nav { + border-left: 2px solid #5d5d5f; + padding-left: 8px; +} + +.index-logo { + max-width: 250px; +} \ No newline at end of file diff --git a/docs/_static/favicon.ico b/docs/_static/favicon.ico new file mode 100644 index 0000000..fa4a999 Binary files /dev/null and b/docs/_static/favicon.ico differ diff --git a/docs/_static/images/logo-dark.svg b/docs/_static/images/logo-dark.svg new file mode 100644 index 0000000..59e0572 --- /dev/null +++ b/docs/_static/images/logo-dark.svg @@ -0,0 +1,27 @@ + + \ No newline at end of file diff --git a/docs/_static/images/logo-light.svg b/docs/_static/images/logo-light.svg new file mode 100644 index 0000000..8358f8e --- /dev/null +++ b/docs/_static/images/logo-light.svg @@ -0,0 +1,36 @@ + + \ No newline at end of file diff --git a/docs/_templates/.gitkeep b/docs/_templates/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/docs/api-reference/index.rst b/docs/api-reference/index.rst new file mode 100644 index 0000000..d429764 --- /dev/null +++ b/docs/api-reference/index.rst @@ -0,0 +1,11 @@ +API Reference +============= + +This page contains auto-generated API reference documentation [#f1]_. + +.. toctree:: + :titlesonly: + + /api-reference/pydom/index + +.. [#f1] Created with `sphinx-autoapi+ Simple to learn, easy to use, fully-featured UI library for Python +
+ +.. image:: https://img.shields.io/pypi/v/pydom.svg + :target: https://pypi.org/project/pydom/ + :alt: PyPI version + :align: center + +|br| + +##### +PyDOM +##### + +PyDOM is a Python library that allows you to create web pages using a declarative syntax. + +PyDOM provides a set of components that represent HTML elements and can be composed to create complex web pages. + +Quick Start +########### + +This is a quick start guide to get you up and running with PyDOM. +The guide will show you how to setup PyDOM and integrate it with `FastAPI