Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sphinx-based documentation #17

Merged
merged 8 commits into from
Jul 16, 2021
Merged

Sphinx-based documentation #17

merged 8 commits into from
Jul 16, 2021

Conversation

WhyNotHugo
Copy link
Contributor

This includes documentation following the standard Python style. Sphinx
can be used to build this into HTML, and it should be trivial to hook
this up to something like RTD to publish them too.

Locally, tox -e docs can be used to builds docs. It may make sense to
include this in CI too to make sure docs continue to build.

I'd suggest building the docs to review this, rather than trying to read the
inline-docs themselves (though these are still perfectly readable).

@codecov-commenter
Copy link

codecov-commenter commented Jul 16, 2021

Codecov Report

Merging #17 (7a2c511) into main (a92dc71) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #17   +/-   ##
=======================================
  Coverage   74.17%   74.17%           
=======================================
  Files           3        3           
  Lines         333      333           
  Branches       71       71           
=======================================
  Hits          247      247           
  Misses         68       68           
  Partials       18       18           
Flag Coverage Δ
tests 73.27% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/platformdirs/__init__.py 74.90% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a92dc71...7a2c511. Read the comment docs.

tox.ini Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
docs/conf.py Outdated
@@ -0,0 +1,53 @@
# Configuration file for the Sphinx documentation builder.
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do!

docs/changelog.rst Show resolved Hide resolved
setup.cfg Outdated Show resolved Hide resolved
docs/conf.py Outdated
author = "The platformdirs team"

# The full version, including alpha/beta/rc tags
release = "2.0.0"
Copy link
Member

Choose a reason for hiding this comment

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

This should be imported from the package not declared again.

Copy link
Member

Choose a reason for hiding this comment

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

Oh and yes, definitely add it to the CI.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not familiar enough with Microsoft's CI system to figure out how the setup works and where to add it. Do you mind addressing that separately?

@gaborbernat gaborbernat marked this pull request as draft July 16, 2021 17:32
Hugo Osvaldo Barrera and others added 8 commits July 16, 2021 22:15
This includes documentation following the standard Python style. Sphinx
can be used to build this into HTML, and it should be trivial to hook
this up to something like RTD to publish them too.

Locally, `tox -e docs` can be used to builds docs. It may make sense to
include this in CI too to make sure docs continue to build.
Including rendering codeblocks properly.
Signed-off-by: Bernát Gábor <[email protected]>
Signed-off-by: Bernát Gábor <[email protected]>
@gaborbernat gaborbernat marked this pull request as ready for review July 16, 2021 22:33
@gaborbernat gaborbernat merged commit 968afaf into tox-dev:main Jul 16, 2021
@gaborbernat
Copy link
Member

@WhyNotHugo
Copy link
Contributor Author

WhyNotHugo commented Jul 16, 2021 via email

@gaborbernat
Copy link
Member

Yeah, that was on purpose, I personally always squash merge PR s 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants