-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
- Loading branch information
1 parent
a92dc71
commit 968afaf
Showing
10 changed files
with
341 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,6 +86,7 @@ jobs: | |
tox_env: | ||
- dev | ||
- pkg_check | ||
- docs | ||
exclude: | ||
- { os: windows, tox_env: pkg_check } | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: 2 | ||
build: | ||
image: latest | ||
formats: | ||
- htmlzip | ||
- epub | ||
python: | ||
version: 3.7 | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- docs | ||
sphinx: | ||
builder: html | ||
configuration: docs/conf.py | ||
fail_on_warning: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
API | ||
=== | ||
|
||
.. note:: | ||
On Unix / Linux, we follow the `XDG Basedir Spec`_. The spec allows overriding | ||
directories with environment variables. The examples show are the default | ||
values, alongside the name of the environment variable that overrides them. | ||
|
||
See the spec itself for further details on the topic. | ||
|
||
.. _XDG Basedir Spec: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html | ||
|
||
User directories | ||
~~~~~~~~~~~~~~~~ | ||
|
||
These are user-specific (and, generally, user-writeable) directories. | ||
|
||
User data directory | ||
------------------- | ||
|
||
.. autofunction:: platformdirs.user_data_dir | ||
|
||
User config directory | ||
--------------------- | ||
|
||
.. autofunction:: platformdirs.user_config_dir | ||
|
||
Cache directory | ||
------------------- | ||
|
||
.. autofunction:: platformdirs.user_cache_dir | ||
|
||
State directory | ||
------------------- | ||
|
||
.. autofunction:: platformdirs.user_state_dir | ||
|
||
Logs directory | ||
------------------- | ||
|
||
.. autofunction:: platformdirs.user_log_dir | ||
|
||
Shared directories | ||
~~~~~~~~~~~~~~~~~~ | ||
|
||
These are system-wide (and, generally, read-only) directories. | ||
|
||
Shared data directory | ||
--------------------- | ||
|
||
.. autofunction:: platformdirs.site_data_dir | ||
|
||
Shared config directory | ||
----------------------- | ||
|
||
.. autofunction:: platformdirs.site_config_dir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. include:: ../CHANGES.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from platformdirs.version import __version__ | ||
|
||
author = "The platformdirs team" | ||
project = "platformdirs" | ||
copyright = "2021, The platformdirs team" | ||
|
||
release = __version__ | ||
extensions = [ | ||
"sphinx.ext.autodoc", | ||
"sphinx.ext.autosectionlabel", | ||
"sphinx.ext.viewcode", | ||
] | ||
html_theme = "furo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
platformdirs's documentation | ||
============================ | ||
|
||
`platformdirs` is a library to determine platform-specific system directories. | ||
This includes directories where to place cache files, user data, configuration, | ||
etc. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Contents: | ||
|
||
api | ||
changelog | ||
|
||
Indices and tables | ||
================== | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.