Skip to content

Commit

Permalink
Rename branch to main
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Feb 1, 2022
1 parent f4d8cca commit 6b223ce
Show file tree
Hide file tree
Showing 58 changed files with 327 additions and 327 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/on_push_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Send coverage report
on:
push:
branches:
- master
- main
paths:
- handsdown/**
- tests/**
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
git add setup.cfg
git commit -m "Release ${VERSION}"
git push https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git --tags
git push https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:master
git push https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:main
- name: Publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
Expand Down
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/handsdown.svg?color=blue&style=for-the-badge)](https://pypi.org/project/handsdown)
![PyPI - Downloads](https://img.shields.io/pypi/dm/handsdown?color=blue&style=for-the-badge)
[![Build Status](https://img.shields.io/travis/vemel/handsdown.svg?style=for-the-badge)](https://travis-ci.org/vemel/handsdown)
[![Code Coverage](https://img.shields.io/codecov/c/gh/vemel/handsdown.svg?style=for-the-badge)](https://codecov.io/gh/vemel/handsdown/tree/master/handsdown)
[![Code Coverage](https://img.shields.io/codecov/c/gh/vemel/handsdown.svg?style=for-the-badge)](https://codecov.io/gh/vemel/handsdown/tree/main/handsdown)
[![Docs](https://img.shields.io/readthedocs/handsdown.svg?color=blue&style=for-the-badge)](https://handsdown.readthedocs.io/)

Python docstring-based documentation generator for lazy perfectionists.
Expand Down Expand Up @@ -35,11 +35,11 @@ Python docstring-based documentation generator for lazy perfectionists.
docstrings support. All of them are converted to a valid Markdown.
- Works with [Django](https://www.djangoproject.com/) and [Flask](https://palletsprojects.com/p/flask/) apps
- Can be used locally, or
[right on GitHub](https://github.com/vemel/handsdown/blob/master/docs/README.md) or even deployed on
[right on GitHub](https://github.com/vemel/handsdown/blob/main/docs/README.md) or even deployed on
[GitHub Pages](https://vemel.github.io/handsdown/) and [Read the Docs](https://handsdown.readthedocs.io/)!
- Signatures for every class, function, property and method.
- Support for type annotations. Even for the ones from the `__future__`!
- Nice list of all modules in [Modules](https://github.com/vemel/handsdown/blob/master/docs/MODULES.md)
- Nice list of all modules in [Modules](https://github.com/vemel/handsdown/blob/main/docs/MODULES.md)
- Gather all scattered `README.md` in submodules to one place
- Find related source code from every doc section.
- Make links by just adding `module.import.String` to docs.
Expand All @@ -66,13 +66,13 @@ And probably *do not* if you:
## Examples

- [All documentation](https://vemel.github.io/handsdown/) in this project
- [Main](https://github.com/vemel/handsdown/blob/master/examples/main_example.py) with [generated output](https://github.com/vemel/handsdown/tree/master/docs/examples/main_example.md)
- [RST docstrings](https://github.com/vemel/handsdown/blob/master/examples/rst_docstrings.py) with [generated output](https://github.com/vemel/handsdown/tree/master/docs/examples/rst_docstrings.md)
- [Google docstrings](https://github.com/vemel/handsdown/blob/master/examples/google_docstrings.py) with [generated output](https://github.com/vemel/handsdown/tree/master/docs/examples/google_docstrings.md)
- [PEP 257 docstrings](https://github.com/vemel/handsdown/blob/master/examples/pep257_docstrings.py) with [generated output](https://github.com/vemel/handsdown/tree/master/docs/examples/pep257_docstrings.md)
- [Sphinx docstrings](https://github.com/vemel/handsdown/blob/master/examples/sphinx_docstrings.py) with [generated output](https://github.com/vemel/handsdown/tree/master/docs/examples/sphinx_docstrings.md)
- [Type annotations](https://github.com/vemel/handsdown/blob/master/examples/typed.py) with [generated output](https://github.com/vemel/handsdown/tree/master/docs/examples/typed.md)
- [Comment-style type annotations](https://github.com/vemel/handsdown/blob/master/examples/comment_typed.py) with [generated output](https://github.com/vemel/handsdown/tree/master/docs/examples/comment_typed.md)
- [Main](https://github.com/vemel/handsdown/blob/main/examples/main_example.py) with [generated output](https://github.com/vemel/handsdown/tree/main/docs/examples/main_example.md)
- [RST docstrings](https://github.com/vemel/handsdown/blob/main/examples/rst_docstrings.py) with [generated output](https://github.com/vemel/handsdown/tree/main/docs/examples/rst_docstrings.md)
- [Google docstrings](https://github.com/vemel/handsdown/blob/main/examples/google_docstrings.py) with [generated output](https://github.com/vemel/handsdown/tree/main/docs/examples/google_docstrings.md)
- [PEP 257 docstrings](https://github.com/vemel/handsdown/blob/main/examples/pep257_docstrings.py) with [generated output](https://github.com/vemel/handsdown/tree/main/docs/examples/pep257_docstrings.md)
- [Sphinx docstrings](https://github.com/vemel/handsdown/blob/main/examples/sphinx_docstrings.py) with [generated output](https://github.com/vemel/handsdown/tree/main/docs/examples/sphinx_docstrings.md)
- [Type annotations](https://github.com/vemel/handsdown/blob/main/examples/typed.py) with [generated output](https://github.com/vemel/handsdown/tree/main/docs/examples/typed.md)
- [Comment-style type annotations](https://github.com/vemel/handsdown/blob/main/examples/comment_typed.py) with [generated output](https://github.com/vemel/handsdown/tree/main/docs/examples/comment_typed.md)

## Usage

Expand Down Expand Up @@ -129,19 +129,19 @@ for [GitHub Pages](https://pages.github.com/), so you just need to setup your
GitHub repository.

```bash
# Generate documentation that points to master branch
# Generate documentation that points to main branch
# do not use custom output location, as `GitHub Pages`
# works only with `docs` directory
handsdown --external `git config --get remote.origin.url`

# or specify GitHub url directly
handsdown --external https://github.com/<user>/<project>/blob/master/
handsdown --external https://github.com/<user>/<project> --branch main
```

- Generate documentation with `--external` flag as shown above, do not use `--output`
flag, only `docs` folder is supported by `GitHub Pages`
- Commit and push all changes a to `master` branch.
- Set your GitHub project `Settings` > `GitHub Pages` > `Source` to `master branch /docs folder`
- Commit and push all changes a to `main` branch.
- Set your GitHub project `Settings` > `GitHub Pages` > `Source` to `main branch /docs folder`

All set! You can change `docs/_config.yml` to add your own touch.

Expand All @@ -162,7 +162,7 @@ for [Read the Docs](https://readthedocs.org/), so you just need to to add your
GitHub repository to `Read the Docs`.

```bash
# Generate documentation that points to master branch
# Generate documentation that points to main branch
# do not use custom output location, as `GitHub Pages`
# works only with `docs` directory
handsdown --external `git config --get remote.origin.url`
Expand All @@ -173,15 +173,15 @@ handsdown --external https://github.com/<user>/<project>/

- Generate documentation with `--external` flag as shown above, do not use `--output`
flag, only `docs` folder is supported by `Read the Docs`
- Commit and push all changes a to `master` branch.
- Commit and push all changes a to `main` branch.
- Add your repository on [Read the Docs](https://readthedocs.org/)

All set! You can change `.readthedocs.yml` and `mkdocs.yml` to add your own touch.

### 📋 Build static HTML

```bash
# Generate documentation that points to master branch
# Generate documentation that points to main branch
# with source links pointing to your repository
# this command also creates `mkdocs.yml`
handsdown --external `git config --get remote.origin.url`
Expand Down
34 changes: 17 additions & 17 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/handsdown.svg?color=blue&style=for-the-badge)](https://pypi.org/project/handsdown)
![PyPI - Downloads](https://img.shields.io/pypi/dm/handsdown?color=blue&style=for-the-badge)
[![Build Status](https://img.shields.io/travis/vemel/handsdown.svg?style=for-the-badge)](https://travis-ci.org/vemel/handsdown)
[![Code Coverage](https://img.shields.io/codecov/c/gh/vemel/handsdown.svg?style=for-the-badge)](https://codecov.io/gh/vemel/handsdown/tree/master/handsdown)
[![Code Coverage](https://img.shields.io/codecov/c/gh/vemel/handsdown.svg?style=for-the-badge)](https://codecov.io/gh/vemel/handsdown/tree/main/handsdown)
[![Docs](https://img.shields.io/readthedocs/handsdown.svg?color=blue&style=for-the-badge)](https://handsdown.readthedocs.io/)

Python docstring-based documentation generator for lazy perfectionists.
Expand Down Expand Up @@ -39,11 +39,11 @@ Full Handsdown project documentation can be found in [Modules](MODULES.md#module
docstrings support. All of them are converted to a valid Markdown.
- Works with [Django](https://www.djangoproject.com/) and [Flask](https://palletsprojects.com/p/flask/) apps
- Can be used locally, or
[right on GitHub](https://github.com/vemel/handsdown/blob/master/docs/README.md) or even deployed on
[right on GitHub](https://github.com/vemel/handsdown/blob/main/docs/README.md) or even deployed on
[GitHub Pages](https://vemel.github.io/handsdown/) and [Read the Docs](https://handsdown.readthedocs.io/)!
- Signatures for every class, function, property and method.
- Support for type annotations. Even for the ones from the `__future__`!
- Nice list of all modules in [Modules](https://github.com/vemel/handsdown/blob/master/docs/MODULES.md)
- Nice list of all modules in [Modules](https://github.com/vemel/handsdown/blob/main/docs/MODULES.md)
- Gather all scattered `README.md` in submodules to one place
- Find related source code from every doc section.
- Make links by just adding `module.import.String` to docs.
Expand All @@ -70,13 +70,13 @@ And probably *do not* if you:
## Examples

- [All documentation](https://vemel.github.io/handsdown/) in this project
- [Main](https://github.com/vemel/handsdown/blob/master/examples/main_example.py) with [generated output](https://github.com/vemel/handsdown/tree/master/docs/examples/main_example.md)
- [RST docstrings](https://github.com/vemel/handsdown/blob/master/examples/rst_docstrings.py) with [generated output](https://github.com/vemel/handsdown/tree/master/docs/examples/rst_docstrings.md)
- [Google docstrings](https://github.com/vemel/handsdown/blob/master/examples/google_docstrings.py) with [generated output](https://github.com/vemel/handsdown/tree/master/docs/examples/google_docstrings.md)
- [PEP 257 docstrings](https://github.com/vemel/handsdown/blob/master/examples/pep257_docstrings.py) with [generated output](https://github.com/vemel/handsdown/tree/master/docs/examples/pep257_docstrings.md)
- [Sphinx docstrings](https://github.com/vemel/handsdown/blob/master/examples/sphinx_docstrings.py) with [generated output](https://github.com/vemel/handsdown/tree/master/docs/examples/sphinx_docstrings.md)
- [Type annotations](https://github.com/vemel/handsdown/blob/master/examples/typed.py) with [generated output](https://github.com/vemel/handsdown/tree/master/docs/examples/typed.md)
- [Comment-style type annotations](https://github.com/vemel/handsdown/blob/master/examples/comment_typed.py) with [generated output](https://github.com/vemel/handsdown/tree/master/docs/examples/comment_typed.md)
- [Main](https://github.com/vemel/handsdown/blob/main/examples/main_example.py) with [generated output](https://github.com/vemel/handsdown/tree/main/docs/examples/main_example.md)
- [RST docstrings](https://github.com/vemel/handsdown/blob/main/examples/rst_docstrings.py) with [generated output](https://github.com/vemel/handsdown/tree/main/docs/examples/rst_docstrings.md)
- [Google docstrings](https://github.com/vemel/handsdown/blob/main/examples/google_docstrings.py) with [generated output](https://github.com/vemel/handsdown/tree/main/docs/examples/google_docstrings.md)
- [PEP 257 docstrings](https://github.com/vemel/handsdown/blob/main/examples/pep257_docstrings.py) with [generated output](https://github.com/vemel/handsdown/tree/main/docs/examples/pep257_docstrings.md)
- [Sphinx docstrings](https://github.com/vemel/handsdown/blob/main/examples/sphinx_docstrings.py) with [generated output](https://github.com/vemel/handsdown/tree/main/docs/examples/sphinx_docstrings.md)
- [Type annotations](https://github.com/vemel/handsdown/blob/main/examples/typed.py) with [generated output](https://github.com/vemel/handsdown/tree/main/docs/examples/typed.md)
- [Comment-style type annotations](https://github.com/vemel/handsdown/blob/main/examples/comment_typed.py) with [generated output](https://github.com/vemel/handsdown/tree/main/docs/examples/comment_typed.md)

## Usage

Expand Down Expand Up @@ -133,19 +133,19 @@ for [GitHub Pages](https://pages.github.com/), so you just need to setup your
GitHub repository.

```bash
# Generate documentation that points to master branch
# Generate documentation that points to main branch
# do not use custom output location, as `GitHub Pages`
# works only with `docs` directory
handsdown --external `git config --get remote.origin.url`

# or specify GitHub url directly
handsdown --external https://github.com/<user>/<project>/blob/master/
handsdown --external https://github.com/<user>/<project> --branch main
```

- Generate documentation with `--external` flag as shown above, do not use `--output`
flag, only `docs` folder is supported by `GitHub Pages`
- Commit and push all changes a to `master` branch.
- Set your GitHub project `Settings` > `GitHub Pages` > `Source` to `master branch /docs folder`
- Commit and push all changes a to `main` branch.
- Set your GitHub project `Settings` > `GitHub Pages` > `Source` to `main branch /docs folder`

All set! You can change `docs/_config.yml` to add your own touch.

Expand All @@ -166,7 +166,7 @@ for [Read the Docs](https://readthedocs.org/), so you just need to to add your
GitHub repository to `Read the Docs`.

```bash
# Generate documentation that points to master branch
# Generate documentation that points to main branch
# do not use custom output location, as `GitHub Pages`
# works only with `docs` directory
handsdown --external `git config --get remote.origin.url`
Expand All @@ -177,15 +177,15 @@ handsdown --external https://github.com/<user>/<project>/

- Generate documentation with `--external` flag as shown above, do not use `--output`
flag, only `docs` folder is supported by `Read the Docs`
- Commit and push all changes a to `master` branch.
- Commit and push all changes a to `main` branch.
- Add your repository on [Read the Docs](https://readthedocs.org/)

All set! You can change `.readthedocs.yml` and `mkdocs.yml` to add your own touch.

### 📋 Build static HTML

```bash
# Generate documentation that points to master branch
# Generate documentation that points to main branch
# with source links pointing to your repository
# this command also creates `mkdocs.yml`
handsdown --external `git config --get remote.origin.url`
Expand Down
12 changes: 6 additions & 6 deletions docs/examples/comment_typed.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PEP 484 - comment-based type annotations examples

> Auto-generated documentation for [examples.comment_typed](https://github.com/vemel/handsdown/blob/master/examples/comment_typed.py) module.
> Auto-generated documentation for [examples.comment_typed](https://github.com/vemel/handsdown/blob/main/examples/comment_typed.py) module.
- [Handsdown](../README.md#-handsdown---python-documentation-generator) / [Modules](../MODULES.md#modules) / [Examples](index.md#examples) / PEP 484 - comment-based type annotations examples
- [Links](#links)
Expand All @@ -16,7 +16,7 @@

## MyValue

[[find in source code]](https://github.com/vemel/handsdown/blob/master/examples/comment_typed.py#L12)
[[find in source code]](https://github.com/vemel/handsdown/blob/main/examples/comment_typed.py#L12)

```python
class MyValue():
Expand All @@ -25,7 +25,7 @@ class MyValue():

## Typed

[[find in source code]](https://github.com/vemel/handsdown/blob/master/examples/comment_typed.py#L18)
[[find in source code]](https://github.com/vemel/handsdown/blob/main/examples/comment_typed.py#L18)

```python
class Typed():
Expand All @@ -48,7 +48,7 @@ class Typed():

### Typed.classmethod

[[find in source code]](https://github.com/vemel/handsdown/blob/master/examples/comment_typed.py#L37)
[[find in source code]](https://github.com/vemel/handsdown/blob/main/examples/comment_typed.py#L37)

```python
@classmethod
Expand All @@ -61,7 +61,7 @@ def classmethod(_my_value: MyValue, *_args: str, **_kwargs: Any) -> Typed:

## func

[[find in source code]](https://github.com/vemel/handsdown/blob/master/examples/comment_typed.py#L43)
[[find in source code]](https://github.com/vemel/handsdown/blob/main/examples/comment_typed.py#L43)

```python
def func(
Expand All @@ -77,7 +77,7 @@ def func(

## func_any

[[find in source code]](https://github.com/vemel/handsdown/blob/master/examples/comment_typed.py#L48)
[[find in source code]](https://github.com/vemel/handsdown/blob/main/examples/comment_typed.py#L48)

```python
def func_any(
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/expressions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Supported expressions examples

> Auto-generated documentation for [examples.expressions](https://github.com/vemel/handsdown/blob/master/examples/expressions.py) module.
> Auto-generated documentation for [examples.expressions](https://github.com/vemel/handsdown/blob/main/examples/expressions.py) module.
Test for [ExpressionAnalyzer](../handsdown/ast_parser/analyzers/expression_analyzer.md#expressionanalyzer) test.

Expand Down
10 changes: 5 additions & 5 deletions docs/examples/google_docstrings.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Google docstrings examples

> Auto-generated documentation for [examples.google_docstrings](https://github.com/vemel/handsdown/blob/master/examples/google_docstrings.py) module.
> Auto-generated documentation for [examples.google_docstrings](https://github.com/vemel/handsdown/blob/main/examples/google_docstrings.py) module.
- [Handsdown](../README.md#-handsdown---python-documentation-generator) / [Modules](../MODULES.md#modules) / [Examples](index.md#examples) / Google docstrings examples
- [Links](#links)
Expand All @@ -17,7 +17,7 @@

## ClassExample

[[find in source code]](https://github.com/vemel/handsdown/blob/master/examples/google_docstrings.py#L13)
[[find in source code]](https://github.com/vemel/handsdown/blob/main/examples/google_docstrings.py#L13)

```python
class ClassExample():
Expand All @@ -32,7 +32,7 @@ Google-style class example

### ClassExample().method_example

[[find in source code]](https://github.com/vemel/handsdown/blob/master/examples/google_docstrings.py#L22)
[[find in source code]](https://github.com/vemel/handsdown/blob/main/examples/google_docstrings.py#L22)

```python
def method_example(text: str = 'hello') -> int:
Expand Down Expand Up @@ -76,7 +76,7 @@ to use the function

## function_example

[[find in source code]](https://github.com/vemel/handsdown/blob/master/examples/google_docstrings.py#L56)
[[find in source code]](https://github.com/vemel/handsdown/blob/main/examples/google_docstrings.py#L56)

```python
def function_example(arg1, arg2, arg3=None):
Expand Down Expand Up @@ -116,7 +116,7 @@ print result

## function_with_pep484_type_annotations

[[find in source code]](https://github.com/vemel/handsdown/blob/master/examples/google_docstrings.py#L87)
[[find in source code]](https://github.com/vemel/handsdown/blob/main/examples/google_docstrings.py#L87)

```python
def function_with_pep484_type_annotations(param1: int, param2: str) -> bool:
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Examples

> Auto-generated documentation for [examples](https://github.com/vemel/handsdown/blob/master/examples/__init__.py) module.
> Auto-generated documentation for [examples](https://github.com/vemel/handsdown/blob/main/examples/__init__.py) module.
Examples of different docstring formats supported by [Handsdown](../handsdown/index.md#handsdown).
Can be used as a list of supported features.
Expand Down
Loading

0 comments on commit 6b223ce

Please sign in to comment.