Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

master_doc = "index" # This assumes that sphinx-build is called from the root directory
html_favicon = 'favicon.ico'
html_favicon = 'static/favicon.ico'
html_show_sourcelink = (
False # Remove 'view source code' from top of page (for html, not python)
)

# Allow a custom CSS.
html_static_path = ['static',]
html_css_files = ["custom.css"]

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

Expand Down
38 changes: 30 additions & 8 deletions docs/source/new_project.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,36 @@ Choose where you would like to create your new project, and call copier with the

Copier will ask you questions for how to set up the project. These questions will be used to fill in aspects of the project's configuration, including both metadata and parameters. Below we provide some high-level overview of the questions:

* *What is the name of your project?* (``project_name``): The name of your project.
* *What is your python module name?* (``module_name``): The name of your (first) module. The main thing this controls is where your source code will live (``src/{{module_name}}``).
* *Your first and last name?* (``author_name``): The name of code's author. This will be used in the project and documentation metadata.
* *Your preferred email address?* (``author_email``): The contact email for the code's author. This will be used in the project and documentation metadata.
* *What license would you like to use?* (``project_license``): The license type you wwant to use for this project. Options are MIT and BSD. For more information on these options see `Github's license page <https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository>`_.
* *What tooling would you like to use to enforce code style?* (``preferred_linter``): A linter is a tool to automatically format for consistency (see :doc:`Linting <../practices/linting>`). We provide options for `black <https://black.readthedocs.io/en/stable/>`_, `pylint <https://pypi.org/project/pylint/>`_, or no linter. Choosing a linter will include it as a project dependency and include it in the :doc:`pre-commit <../practices/precommit>` hooks.
* *Do you want to use a tool to maintain a specific ordering for module imports?* (``use_isort``): `isort <https://pycqa.github.io/isort/>`_ is a tool for ordering imports in a standard order. Enabling the option will include ``isort`` as part of github's :doc:`pre-commit <../practices/precommit>`.
* *Do you want to create some example module code?* (``create_example_module``): If this option is selected the template will create a model in ``src/{{module_name}}`` and create a corresponding example test file.
.. list-table::
:header-rows: 1

* - **Question**
- **Variable**
- **Notes**
* - *What is the name of your project?*
- ``project_name``
- The name of your project.
* - *What is your python module name?*
- ``module_name``
- The name of your (first) module. This controls where your source code will live (``src/{{module_name}}``).
* - *Your first and last name?*
- ``author_name``
- The name of code's author. This will be used in the project and documentation metadata.
* - *Your preferred email address?*
- ``author_email``
- The contact email for the code's author. This will be used in the project and documentation metadata.
* - *What license would you like to use?*
- ``project_license``
- The license type you wwant to use for this project. Options are MIT and BSD. For more information on these options see `Github's license page <https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository>`_.
* - *What tooling would you like to use to enforce code style?*
- ``preferred_linter``
- A linter is a tool to automatically format for consistency (see :doc:`Linting <../practices/linting>`). We provide options for `black <https://black.readthedocs.io/en/stable/>`_, `pylint <https://pypi.org/project/pylint/>`_, or no linter. Choosing a linter will include it as a project dependency and include it in the :doc:`pre-commit <../practices/precommit>` hooks.
* - *Do you want to use a tool to maintain a specific ordering for module imports?*
- ``use_isort``
- `isort <https://pycqa.github.io/isort/>`_ is a tool for ordering imports in a standard order. Enabling the option will include ``isort`` as part of github's :doc:`pre-commit <../practices/precommit>`.
* - *Do you want to create some example module code?*
- ``create_example_module``
- If this option is selected the template will create a model in ``src/{{module_name}}`` and create a corresponding example test file.

While these choices will provide the initial structure for your project, most can be changed later. See Copier's `documentation for changing answers to the question <https://copier.readthedocs.io/en/stable/updating/>`_

Expand Down
4 changes: 4 additions & 0 deletions docs/static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* Allow tables to wrap. */
.wy-table-responsive table td, .wy-table-responsive table th {
white-space: inherit;
}
File renamed without changes.