{"id":28389812,"url":"https://github.com/readthedocs-examples/example-sphinx-basic","last_synced_at":"2025-06-27T21:32:31.292Z","repository":{"id":37761295,"uuid":"506212239","full_name":"readthedocs-examples/example-sphinx-basic","owner":"readthedocs-examples","description":"A basic Sphinx project for Read the Docs ","archived":false,"fork":false,"pushed_at":"2023-08-18T07:42:59.000Z","size":30,"stargazers_count":26,"open_issues_count":0,"forks_count":125,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-31T11:37:21.274Z","etag":null,"topics":["example-project","sphinx-doc"],"latest_commit_sha":null,"homepage":"https://example-sphinx-basic.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/readthedocs-examples.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-06-22T11:10:13.000Z","updated_at":"2025-04-10T07:19:16.000Z","dependencies_parsed_at":"2024-01-05T23:43:58.385Z","dependency_job_id":"43d5c6d2-98e2-4f97-865c-0cc37ddf167a","html_url":"https://github.com/readthedocs-examples/example-sphinx-basic","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/readthedocs-examples/example-sphinx-basic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/readthedocs-examples%2Fexample-sphinx-basic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/readthedocs-examples%2Fexample-sphinx-basic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/readthedocs-examples%2Fexample-sphinx-basic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/readthedocs-examples%2Fexample-sphinx-basic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/readthedocs-examples","download_url":"https://codeload.github.com/readthedocs-examples/example-sphinx-basic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/readthedocs-examples%2Fexample-sphinx-basic/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262335374,"owners_count":23295633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["example-project","sphinx-doc"],"created_at":"2025-05-31T02:10:38.113Z","updated_at":"2025-06-27T21:32:31.280Z","avatar_url":"https://github.com/readthedocs-examples.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Example: Basic Sphinx project for Read the Docs\n===============================================\n\n.. image:: https://readthedocs.org/projects/example-sphinx-basic/badge/?version=latest\n    :target: https://example-sphinx-basic.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n\n.. This README.rst should work on Github and is also included in the Sphinx documentation project in docs/ - therefore, README.rst uses absolute links for most things so it renders properly on GitHub\n\nThis example shows a basic Sphinx project with Read the Docs. You're encouraged to view it to get inspiration and copy \u0026 paste from the files in the source code. If you are using Read the Docs for the first time, have a look at the official `Read the Docs Tutorial \u003chttps://docs.readthedocs.io/en/stable/tutorial/index.html\u003e`__.\n\n📚 `docs/ \u003chttps://github.com/readthedocs-examples/example-sphinx-basic/blob/main/docs/\u003e`_\n    A basic Sphinx project lives in ``docs/``. All the ``*.rst`` make up sections in the documentation.\n⚙️ `.readthedocs.yaml \u003chttps://github.com/readthedocs-examples/example-sphinx-basic/blob/main/.readthedocs.yaml\u003e`_\n    Read the Docs Build configuration is stored in ``.readthedocs.yaml``.\n⚙️ `docs/conf.py \u003chttps://github.com/readthedocs-examples/example-sphinx-basic/blob/main/docs/conf.py\u003e`_\n    Both the configuration and the folder layout follow Sphinx default conventions. You can change the `Sphinx configuration values \u003chttps://www.sphinx-doc.org/en/master/usage/configuration.html\u003e`_ in this file\n📍 `docs/requirements.txt \u003chttps://github.com/readthedocs-examples/example-sphinx-basic/blob/main/docs/requirements.txt\u003e`_ and `docs/requirements.in \u003chttps://github.com/readthedocs-examples/example-sphinx-basic/blob/main/docs/requirements.in\u003e`_\n    Python dependencies are `pinned \u003chttps://docs.readthedocs.io/en/latest/guides/reproducible-builds.html\u003e`_ (uses `pip-tools \u003chttps://pip-tools.readthedocs.io/en/latest/\u003e`_). Make sure to add your Python dependencies to ``requirements.txt`` or if you choose `pip-tools \u003chttps://pip-tools.readthedocs.io/en/latest/\u003e`_, edit ``docs/requirements.in`` and remember to run ``pip-compile docs/requirements.in``.\n💡 `docs/api.rst \u003chttps://github.com/readthedocs-examples/example-sphinx-basic/blob/main/docs/api.rst\u003e`_\n    By adding our example Python module ``lumache`` in the reStructuredText directive ``:autosummary:``, Sphinx will automatically scan this module and generate API docs.\n💡 `docs/usage.rst \u003chttps://github.com/readthedocs-examples/example-sphinx-basic/blob/main/docs/usage.rst\u003e`_\n    Sphinx can automatically extract API documentation directly from Python modules, using for instance the ``:autofunction:`` directive.\n💡 `lumache.py \u003chttps://github.com/readthedocs-examples/example-sphinx-basic/blob/main/lumache.py\u003e`_\n    API docs are generated for this example Python module - they use *docstrings* directly in the documentation, notice how this shows up in the rendered documentation.\n🔢 Git tags versioning\n    We use a basic versioning mechanism by adding a git tag for every release of the example project. All releases and their version numbers are visible on `example-sphinx-basic.readthedocs.io \u003chttps://example-sphinx-basic.readthedocs.io/en/latest/\u003e`__.\n📜 `README.rst \u003chttps://github.com/readthedocs-examples/example-sphinx-basic/blob/main/README.rst\u003e`_\n    Contents of this ``README.rst`` are visible on Github and included on `the documentation index page \u003chttps://example-sphinx-basic.readthedocs.io/en/latest/\u003e`_ (Don't Repeat Yourself).\n⁉️ Questions / comments\n    If you have questions related to this example, feel free to can ask them as a Github issue `here \u003chttps://github.com/readthedocs-examples/example-sphinx-basic/issues\u003e`_.\n\n\nExample Project usage\n---------------------\n\nThis project has a standard Sphinx layout which is built by Read the Docs almost the same way that you would build it locally (on your own laptop!).\n\nYou can build and view this documentation project locally - we recommend that you activate `a local Python virtual environment first \u003chttps://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/#creating-a-virtual-environment\u003e`_:\n\n.. code-block:: console\n\n    # Install required Python dependencies (Sphinx etc.)\n    pip install -r docs/requirements.txt\n\n    # Enter the Sphinx project\n    cd docs/\n    \n    # Run the raw sphinx-build command\n    sphinx-build -M html . _build/\n\n\nYou can also build the documentation locally with ``make``:\n\n.. code-block:: console\n\n    # Enter the Sphinx project\n    cd docs/\n    \n    # Build with make\n    make html\n    \n    # Open with your preferred browser, pointing it to the documentation index page\n    firefox _build/html/index.html\n\n\nUsing the example in your own project\n-------------------------------------\n\nIf you are new to Read the Docs, you may want to refer to the `Read the Docs User documentation \u003chttps://docs.readthedocs.io/\u003e`_.\n\nIf you are copying this code in order to get started with your documentation, you need to:\n\n#. place your ``docs/`` folder alongside your Python project. If you are starting a new project, you can adapt the `pyproject.toml` example configuration.\n#. use your existing project repository or create a new repository on Github, GitLab, Bitbucket or another host supported by Read the Docs\n#. copy ``.readthedocs.yaml`` and the ``docs/`` folder into your project.\n#. customize all the files, replacing example contents.\n#. add your own Python project, replacing the ``pyproject.toml`` configuration and ``lumache.py`` module.\n#. rebuild the documenation locally to see that it works.\n#. *finally*, register your project on Read the Docs, see `Importing Your Documentation \u003chttps://docs.readthedocs.io/en/stable/intro/import-guide.html\u003e`_.\n\n\nRead the Docs tutorial\n----------------------\n\nTo get started with Read the Docs, you may also refer to the `Read the Docs tutorial \u003chttps://docs.readthedocs.io/en/stable/tutorial/\u003e`__.\nIt provides a full walk-through of building an example project similar to the one in this repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freadthedocs-examples%2Fexample-sphinx-basic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freadthedocs-examples%2Fexample-sphinx-basic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freadthedocs-examples%2Fexample-sphinx-basic/lists"}