![cd](https://github.com/thclark/rstcloth/actions/workflows/cd.yml/badge.svg)
[![codecov](https://codecov.io/gh/thclark/rstcloth/branch/main/graph/badge.svg)](https://codecov.io/gh/thclark/rstcloth)
[![PyPI version](https://badge.fury.io/py/rstcloth.svg)](https://badge.fury.io/py/rstcloth)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
[![black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
[![Documentation Status](https://readthedocs.org/projects/rstcloth/badge/?version=latest)](https://rstcloth.readthedocs.io/en/latest/?badge=latest)
# RstCloth
reStructuredText is a powerful human-centric markup language that is
well defined, flexible, with powerful tools that make writing and
maintaining text easy and pleasurable. Humans can edit
reStructuredText without the aide of complex editing tools, and the
resulting source is easy to manipulate and process.
As an alternative and a supplement, RstCloth is a Python API for
writing well formed reStructuredText programatically.
Find the [project documentation here](https://rstcloth.readthedocs.io)
## Developer notes
Repo is based on [thclark/python-library-template](https://github.com/thclark/python-library-template):
- vscode `.devcontainer`
- black style
- sphinx docs with some examples and automatic build
- pre-commit hooks
- tox tests
- github actions ci + cd
- code coverage
### Using VSCode
Check out the repo and use the remote `.devcontainer` to start developing, with everything installed out of the box.
### In other IDEs
Use `poetry --extras docs` to install the project and get started. You also You need to install pre-commit to get the hooks working. Do:
```
pip install pre-commit
pre-commit install && pre-commit install -t commit-msg
```
Once that's done, each time you make a commit, a wide range of checks are made and the project file formats are applied.
Upon failure, the commit will halt. **Re-running the commit will automatically fix most issues** except:
- The flake8 checks... hopefully over time Black (which fixes most things automatically already) will negate need for it.
- You'll have to fix documentation yourself prior to a successful commit (there's no auto fix for that!!).
You can run pre-commit hooks without making a commit, too, like:
```
pre-commit run black --all-files
```
or
```
# -v gives verbose output, useful for figuring out why docs won't build
pre-commit run build-docs -v
```
### Contributing
- Please raise an issue on the board (or add your \$0.02 to an existing issue) so the maintainers know
what's happening and can advise / steer you.
- Create a fork of rstcloth, undertake your changes on a new branch, (see `.pre-commit-config.yaml` for branch naming conventions).
- To make life easy for us, use our conventional commits pattern (if you've got pre-commit installed correctly, it'll guide you on your first commit) to make your commits (if not, we'll try to preserve your history, but might have to squashmerge which would lose your contribution history)
- Adopt a Test Driven Development approach to implementing new features or fixing bugs.
- Ask the `rstcloth` maintainers _where_ to make your pull request. We'll create a version branch, according to the
roadmap, into which you can make your PR. We'll help review the changes and improve the PR.
- Once checks have passed, test coverage of the new code is >=95%, documentation is updated and the Review is passed, we'll merge into the version branch.
### Release process
Releases are automated using conventional-commits and GitHub Actions.
## Documents
### Building documents automatically
In the VSCode `.devcontainer`, the RestructuredText extension should build the docs live for you (right click the `.rst` file and hit "Open Preview").
On each commit, the documentation will build automatically in a pre-configured environment. The way pre-commit works, you won't be allowed to make the commit unless the documentation builds,
this way we avoid getting broken documentation pushed to the main repository on any commit sha, so we can rely on
builds working.
### Building documents manually
**If you did need to build the documentation**
Install `doxgen`. On a mac, that's `brew install doxygen`; other systems may differ.
Install sphinx and other requirements for building the docs:
```
poetry install --extras docs
```
Run the build process:
```
sphinx-build -b html docs/source docs/build
```
Raw data
{
"_id": null,
"home_page": "https://github.com/thclark/rstcloth",
"name": "rstcloth",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7,<4",
"maintainer_email": "",
"keywords": "sphinx,rst,restructuredtext,documentation,rest,docutils",
"author": "Tom Clark",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/83/0c/c155388b62395704ad99a0923bde811811f9cc9d4decea784e19a86b86f4/rstcloth-0.6.0.tar.gz",
"platform": null,
"description": "![cd](https://github.com/thclark/rstcloth/actions/workflows/cd.yml/badge.svg)\n[![codecov](https://codecov.io/gh/thclark/rstcloth/branch/main/graph/badge.svg)](https://codecov.io/gh/thclark/rstcloth)\n[![PyPI version](https://badge.fury.io/py/rstcloth.svg)](https://badge.fury.io/py/rstcloth)\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)\n[![black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)\n[![Documentation Status](https://readthedocs.org/projects/rstcloth/badge/?version=latest)](https://rstcloth.readthedocs.io/en/latest/?badge=latest)\n\n# RstCloth\n\nreStructuredText is a powerful human-centric markup language that is\nwell defined, flexible, with powerful tools that make writing and\nmaintaining text easy and pleasurable. Humans can edit\nreStructuredText without the aide of complex editing tools, and the\nresulting source is easy to manipulate and process.\n\nAs an alternative and a supplement, RstCloth is a Python API for\nwriting well formed reStructuredText programatically.\n\nFind the [project documentation here](https://rstcloth.readthedocs.io)\n\n## Developer notes\n\nRepo is based on [thclark/python-library-template](https://github.com/thclark/python-library-template):\n\n- vscode `.devcontainer`\n- black style\n- sphinx docs with some examples and automatic build\n- pre-commit hooks\n- tox tests\n- github actions ci + cd\n- code coverage\n\n### Using VSCode\n\nCheck out the repo and use the remote `.devcontainer` to start developing, with everything installed out of the box.\n\n### In other IDEs\n\nUse `poetry --extras docs` to install the project and get started. You also You need to install pre-commit to get the hooks working. Do:\n\n```\npip install pre-commit\npre-commit install && pre-commit install -t commit-msg\n```\n\nOnce that's done, each time you make a commit, a wide range of checks are made and the project file formats are applied.\n\nUpon failure, the commit will halt. **Re-running the commit will automatically fix most issues** except:\n\n- The flake8 checks... hopefully over time Black (which fixes most things automatically already) will negate need for it.\n- You'll have to fix documentation yourself prior to a successful commit (there's no auto fix for that!!).\n\nYou can run pre-commit hooks without making a commit, too, like:\n\n```\npre-commit run black --all-files\n```\n\nor\n\n```\n# -v gives verbose output, useful for figuring out why docs won't build\npre-commit run build-docs -v\n```\n\n### Contributing\n\n- Please raise an issue on the board (or add your \\$0.02 to an existing issue) so the maintainers know\n what's happening and can advise / steer you.\n\n- Create a fork of rstcloth, undertake your changes on a new branch, (see `.pre-commit-config.yaml` for branch naming conventions).\n\n- To make life easy for us, use our conventional commits pattern (if you've got pre-commit installed correctly, it'll guide you on your first commit) to make your commits (if not, we'll try to preserve your history, but might have to squashmerge which would lose your contribution history)\n\n- Adopt a Test Driven Development approach to implementing new features or fixing bugs.\n\n- Ask the `rstcloth` maintainers _where_ to make your pull request. We'll create a version branch, according to the\n roadmap, into which you can make your PR. We'll help review the changes and improve the PR.\n\n- Once checks have passed, test coverage of the new code is >=95%, documentation is updated and the Review is passed, we'll merge into the version branch.\n\n### Release process\n\nReleases are automated using conventional-commits and GitHub Actions.\n\n## Documents\n\n### Building documents automatically\n\nIn the VSCode `.devcontainer`, the RestructuredText extension should build the docs live for you (right click the `.rst` file and hit \"Open Preview\").\n\nOn each commit, the documentation will build automatically in a pre-configured environment. The way pre-commit works, you won't be allowed to make the commit unless the documentation builds,\nthis way we avoid getting broken documentation pushed to the main repository on any commit sha, so we can rely on\nbuilds working.\n\n### Building documents manually\n\n**If you did need to build the documentation**\n\nInstall `doxgen`. On a mac, that's `brew install doxygen`; other systems may differ.\n\nInstall sphinx and other requirements for building the docs:\n\n```\npoetry install --extras docs\n```\n\nRun the build process:\n\n```\nsphinx-build -b html docs/source docs/build\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A simple Python API for generating RestructuredText.",
"version": "0.6.0",
"project_urls": {
"Homepage": "https://github.com/thclark/rstcloth",
"Repository": "https://github.com/thclark/rstcloth"
},
"split_keywords": [
"sphinx",
"rst",
"restructuredtext",
"documentation",
"rest",
"docutils"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "01a1c01c7a7af238c80cf99a8bbea474899f51383c5d9e39a84e7ddbd1e98433",
"md5": "fa63eee3f7cc42f8473c5ae287bdf2ad",
"sha256": "84f80f713cb9f02d51872f7c8577d4ac1efd180b18117c3fe7316066556f7776"
},
"downloads": -1,
"filename": "rstcloth-0.6.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "fa63eee3f7cc42f8473c5ae287bdf2ad",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7,<4",
"size": 9067,
"upload_time": "2024-02-13T12:34:43",
"upload_time_iso_8601": "2024-02-13T12:34:43.463495Z",
"url": "https://files.pythonhosted.org/packages/01/a1/c01c7a7af238c80cf99a8bbea474899f51383c5d9e39a84e7ddbd1e98433/rstcloth-0.6.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "830cc155388b62395704ad99a0923bde811811f9cc9d4decea784e19a86b86f4",
"md5": "a42cac16fdbeff6c8f633d839d662b4b",
"sha256": "94d83897e3c7819fe574f7ff7643e943265b1e2b438d964325497bd50a54732e"
},
"downloads": -1,
"filename": "rstcloth-0.6.0.tar.gz",
"has_sig": false,
"md5_digest": "a42cac16fdbeff6c8f633d839d662b4b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7,<4",
"size": 10457,
"upload_time": "2024-02-13T12:34:47",
"upload_time_iso_8601": "2024-02-13T12:34:47.660805Z",
"url": "https://files.pythonhosted.org/packages/83/0c/c155388b62395704ad99a0923bde811811f9cc9d4decea784e19a86b86f4/rstcloth-0.6.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-13 12:34:47",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "thclark",
"github_project": "rstcloth",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "rstcloth"
}