Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Commit 574a396

Browse files
author
Thiago C. D'Ávila
authored
Merge pull request #108 from staticdev/add-sphinx-click
Fix README.rst release
2 parents b3934e1 + 5a785a7 commit 574a396

File tree

3 files changed

+38
-5
lines changed

3 files changed

+38
-5
lines changed

README.rst

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,29 @@ You can install *Git Portfolio* via pip_ from PyPI_:
6262
$ pip install git-portfolio
6363
6464
65-
Usage
66-
-----
65+
.. basic-usage
6766
68-
.. click:: git_portfolio.__main__:main
69-
:prog: gitp
70-
:nested: full
67+
Basic usage
68+
-----------
69+
70+
1. Create initial configuration with:
71+
72+
.. code:: console
73+
74+
$ gitp config init
75+
76+
77+
2. Execute all the commands you want. Eg.:
78+
79+
.. code:: console
80+
81+
$ gitp create issues # create same issue for all projects
82+
$ gitp checkout -b new-branch # checks out new branch new-branch in all projects
83+
84+
85+
.. end-basic-usage
86+
87+
Complete instructions can be found at `git-portfolio.readthedocs.io`_.
7188

7289

7390
Contributing
@@ -106,5 +123,6 @@ This project was generated from `@cjolowicz`_'s `Hypermodern Python Cookiecutter
106123
.. _Hypermodern Python Cookiecutter: https://github.com/cjolowicz/cookiecutter-hypermodern-python
107124
.. _file an issue: https://github.com/staticdev/git-portfolio/issues
108125
.. _pip: https://pip.pypa.io/
126+
.. _git-portfolio.readthedocs.io: https://git-portfolio.readthedocs.io
109127
.. github-only
110128
.. _Contributor Guide: CONTRIBUTING.rst

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:hidden:
88
:maxdepth: 1
99

10+
usage
1011
reference
1112
contributing
1213
Code of Conduct <codeofconduct>

docs/usage.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Usage
2+
=====
3+
4+
.. include:: ../README.rst
5+
:start-after: basic-usage
6+
:end-before: end-basic-usage
7+
8+
9+
Complete usage
10+
--------------
11+
12+
.. click:: git_portfolio.__main__:main
13+
:prog: gitp
14+
:nested: full

0 commit comments

Comments
 (0)