Skip to content

Add docs folder#21

Open
h-chmeruk wants to merge 2 commits intomainfrom
add-docs-folder
Open

Add docs folder#21
h-chmeruk wants to merge 2 commits intomainfrom
add-docs-folder

Conversation

@h-chmeruk
Copy link
Contributor

@h-chmeruk h-chmeruk commented Jan 21, 2026

Which issue(s) are closed by this pull request?

Closes #12

Changes proposed in this pull request:

  • Added the docs folder with the most important files.
  • Added additional tests to verify the correct creation and content of the new files.

@h-chmeruk h-chmeruk added the enhancement New feature or request label Jan 28, 2026
@h-chmeruk h-chmeruk marked this pull request as ready for review January 28, 2026 10:29
@h-chmeruk h-chmeruk requested a review from ahms5 January 28, 2026 10:29
{% if 'matplotlib' in dependencies -%}
'matplotlib': ('https://matplotlib.org/stable/', None),{% endif %}
{% if 'pyfar' in dependencies -%}
'pyfar': ('https://pyfar.readthedocs.io/en/stable/', None),{% endif %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we should add the gallery here as well:

Suggested change
'pyfar': ('https://pyfar.readthedocs.io/en/stable/', None),{% endif %}
'pyfar': ('https://pyfar.readthedocs.io/en/stable/', None),{% endif %}
'gallery': ('https://pyfar-gallery.readthedocs.io/en/latest/', None),

@@ -0,0 +1 @@
.. include:: ../HISTORY.rst No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.. include:: ../HISTORY.rst
.. include:: ../HISTORY.rst

better to always put a new line at the end of a file, thats easier for git.

{{ project_slug }}
{% for _ in project_slug %}={% endfor %}

.. include:: header.rst No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.. include:: header.rst
.. include:: header.rst

@@ -0,0 +1 @@
.. include:: ../CONTRIBUTING.rst No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.. include:: ../CONTRIBUTING.rst
.. include:: ../CONTRIBUTING.rst


# set dropdown header at pyfar appearance, so that pyfar is the first item in
# the dropdown called Packages
html_theme_options['header_links_before_dropdown'] = n_toctree_pyfar No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
html_theme_options['header_links_before_dropdown'] = n_toctree_pyfar
html_theme_options['header_links_before_dropdown'] = n_toctree_pyfar

modules/{{ project_slug }}


.. _examples gallery: https://pyfar-gallery.readthedocs.io/en/latest/examples_gallery.html No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.. _examples gallery: https://pyfar-gallery.readthedocs.io/en/latest/examples_gallery.html
.. _examples gallery: https://pyfar-gallery.readthedocs.io/en/latest/examples_gallery.html

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

@@ -0,0 +1 @@
.. mdinclude:: ../README.md No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.. mdinclude:: ../README.md
.. mdinclude:: ../README.md

.. raw:: html

<i class="fa-solid fa-clock-rotate-left icon-style">
</i> No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
</i>
</i>

def test_content_docs_multiple_files(default_project, file_name):
content = default_project.project_dir.joinpath(file_name).read_text()
desired = "my_project"
assert desired in content, f"{desired!r} is not in content"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
assert desired in content, f"{desired!r} is not in content"
assert desired in content, f"{desired!r} is not in content"

@ahms5 ahms5 added this to the v0.1.0 milestone Feb 4, 2026
@ahms5 ahms5 added enhancement New feature or request and removed enhancement New feature or request labels Feb 4, 2026
@ahms5
Copy link
Member

ahms5 commented Feb 4, 2026

maybe you can also add the .readthedocs.yml config in this pr

@h-chmeruk
Copy link
Contributor Author

Yeah, I will add the .readthedocs.yml file as soon as we merge/close #35. If we merge it, I plan to use the new python_versions parameter to define the default_python_version for the .readthedocs.yml file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add doc folder to copier

2 participants