{"id":13813549,"url":"https://github.com/thclark/rstcloth","last_synced_at":"2025-03-17T06:31:35.936Z","repository":{"id":8265003,"uuid":"9716532","full_name":"thclark/rstcloth","owner":"thclark","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-13T12:35:09.000Z","size":272,"stargazers_count":28,"open_issues_count":2,"forks_count":11,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-05-19T07:27:50.456Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thclark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-04-27T15:20:39.000Z","updated_at":"2024-06-11T21:43:17.048Z","dependencies_parsed_at":"2024-06-11T21:53:15.095Z","dependency_job_id":null,"html_url":"https://github.com/thclark/rstcloth","commit_stats":{"total_commits":196,"total_committers":12,"mean_commits":"16.333333333333332","dds":0.6275510204081632,"last_synced_commit":"b12b97288e956ef14e28cb2dcc7ace039435b809"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thclark%2Frstcloth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thclark%2Frstcloth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thclark%2Frstcloth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thclark%2Frstcloth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thclark","download_url":"https://codeload.github.com/thclark/rstcloth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243847062,"owners_count":20357317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T04:01:21.095Z","updated_at":"2025-03-17T06:31:35.566Z","avatar_url":"https://github.com/thclark.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"![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\u0026logoColor=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 \u0026\u0026 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 \u003e=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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthclark%2Frstcloth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthclark%2Frstcloth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthclark%2Frstcloth/lists"}