Skip to content

Commit 5c82152

Browse files
authored
Prepeare Documentation for Release (#3)
1 parent d81a618 commit 5c82152

71 files changed

Lines changed: 1966 additions & 865 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

AUTHORS.md

Lines changed: 0 additions & 13 deletions
This file was deleted.
File renamed without changes.

CONTRIBUTING.md renamed to CONTRIBUTING.rst

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ helps, and credit will always be given.
88
You can contribute in many ways:
99

1010
Types of Contributions
11-
----------------------
11+
-----------------------
1212

1313
Report Bugs
14-
~~~~~~~~~~~
14+
~~~~~~~~~~~~
1515

16-
Report bugs at https://github.com/hetznercloud/hetznercloud-python/issues.
16+
Report bugs at https://github.com/hetznercloud/hcloud-python/issues.
1717

1818
If you are reporting a bug, please include:
1919

@@ -22,28 +22,28 @@ If you are reporting a bug, please include:
2222
* Detailed steps to reproduce the bug.
2323

2424
Fix Bugs
25-
~~~~~~~~
25+
~~~~~~~~~
2626

2727
Look through the GitHub issues for bugs. Anything tagged with "bug" and "help
2828
wanted" is open to whoever wants to implement it.
2929

3030
Implement Features
31-
~~~~~~~~~~~~~~~~~~
31+
~~~~~~~~~~~~~~~~~~~
3232

3333
Look through the GitHub issues for features. Anything tagged with "enhancement"
3434
and "help wanted" is open to whoever wants to implement it.
3535

3636
Write Documentation
37-
~~~~~~~~~~~~~~~~~~~
37+
~~~~~~~~~~~~~~~~~~~~
3838

3939
Hetzner Cloud Python could always use more documentation, whether as part of the
4040
official Hetzner Cloud Python docs, in docstrings, or even on the web in blog posts,
4141
articles, and such.
4242

4343
Submit Feedback
44-
~~~~~~~~~~~~~~~
44+
~~~~~~~~~~~~~~~~
4545

46-
The best way to send feedback is to file an issue at https://github.com/hetznercloud/hetznercloud/issues.
46+
The best way to send feedback is to file an issue at https://github.com/hetznercloud/hcloud-python/issues.
4747

4848
If you are proposing a feature:
4949

@@ -53,19 +53,19 @@ If you are proposing a feature:
5353
are welcome :)
5454

5555
Get Started!
56-
------------
56+
-------------
5757

58-
Ready to contribute? Here's how to set up `hetznercloud-python` for local development.
58+
Ready to contribute? Here's how to set up `hcloud-python` for local development.
5959

60-
1. Fork the `hetznercloud-python` repo on GitHub.
60+
1. Fork the `hcloud-python` repo on GitHub.
6161
2. Clone your fork locally::
6262

63-
$ git clone git@github.com:your_name_here/hetznercloud-python.git
63+
$ git clone git@github.com:your_name_here/hcloud-python.git
6464

6565
3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development::
6666

67-
$ mkvirtualenv hetznercloud-python
68-
$ cd hetznercloud-python/
67+
$ mkvirtualenv hcloud-python
68+
$ cd hcloud-python/
6969
$ python setup.py develop
7070

7171
4. Create a branch for local development::
@@ -92,7 +92,7 @@ Ready to contribute? Here's how to set up `hetznercloud-python` for local develo
9292
7. Submit a pull request through the GitHub website.
9393

9494
Pull Request Guidelines
95-
-----------------------
95+
------------------------
9696

9797
Before you submit a pull request, check that it meets these guidelines:
9898

@@ -101,26 +101,25 @@ Before you submit a pull request, check that it meets these guidelines:
101101
your new functionality into a function with a docstring, and add the
102102
feature to the list in README.rst.
103103
3. The pull request should work for Python 2.7, 3.5 and 3.6, and for PyPy. Check
104-
https://travis-ci.org/hetznercloud/hetznercloud-python/pull_requests
104+
https://travis-ci.org/hetznercloud/hcloud-python/pull_requests
105105
and make sure that the tests pass for all supported Python versions.
106106

107107
Tips
108-
----
108+
-----
109109

110110
To run a subset of tests::
111111

112112
$ py.test tests.test_hetznercloud
113113

114114

115-
Deploying
116-
---------
115+
How to release
116+
---------------
117117

118-
A reminder for the maintainers on how to deploy.
119-
Make sure all your changes are committed (including an entry in HISTORY.rst).
118+
A reminder for the maintainers on how to release a new version.
119+
Make sure all your changes are committed (including an entry in CHANGELOG.rst).
120120
Then run::
121121

122-
$ bumpversion patch # possible: major / minor / patch
123-
$ git push
124-
$ git push --tags
122+
1. Change the version under /hcloud/version.py
123+
2. Push the change to the `master` branch and tag an new release through the `Github UI <https://github.com/hetznercloud/hcloud-python/releases>`_.
125124

126125
Travis will then deploy to PyPI if tests pass.

MANIFEST.in

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
include AUTHORS.md
2-
include CONTRIBUTING.md
3-
include CHANGELOG.md
1+
include CONTRIBUTING.rst
2+
include CHANGELOG.rst
43
include LICENSE
5-
include README.md
4+
include README.rst
65

76
recursive-include tests *
87
recursive-exclude * __pycache__

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,9 @@ coverage: ## check code coverage quickly with the default Python
6666
$(BROWSER) htmlcov/index.html
6767

6868
docs: ## generate Sphinx HTML documentation, including API docs
69-
rm -f docs/hcloud.rst
70-
rm -f docs/modules.rst
71-
sphinx-apidoc -o docs/ hcloud
7269
$(MAKE) -C docs clean
7370
$(MAKE) -C docs html
74-
$(BROWSER) docs/_build/html/index.html
71+
$(BROWSER) docs/_build/html/index.html
7572

7673
servedocs: docs ## compile the docs watching for changes
7774
watchmedo shell-command -p '*.rst' -c '$(MAKE) -C docs html' -R -D .

README.rst

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,33 @@ Hetzner Cloud Python
44

55
.. image:: https://travis-ci.com/hetznercloud/hcloud-python.svg?branch=master
66
:target: https://travis-ci.com/hetznercloud/hcloud-python
7-
7+
.. image:: https://readthedocs.org/projects/hcloud-python/badge/?version=latest
8+
:target: https://hcloud-python.readthedocs.io
9+
10+
811

912
**IMPORTANT: This project is still in development and not ready production yet!**
1013

1114
Official Hetzner Cloud python library
1215

16+
The library's documentation is available at `ReadTheDocs`_, the public API documentation is available at https://docs.hetzner.cloud.
1317

14-
* Free software: MIT license
15-
* Documentation: https://hcloud-python.readthedocs.io.
16-
* API Reference: https://docs.hetzner.cloud.
18+
.. _ReadTheDocs: https://hcloud-python.readthedocs.io
1719

20+
Usage example
21+
-------------
1822

19-
Setup Dev environment
23+
After the documentation has been created, click on `Usage` section
24+
25+
Or open `docs/usage.rst`
26+
27+
You can find some more examples under `examples/`.
28+
29+
30+
Development
31+
-----------
32+
33+
Setup Dev Environment
2034
---------------------
2135
1) `mkvirtualenv hcloud-python`
2236

@@ -27,25 +41,20 @@ Run tests
2741
---------
2842
* `tox .`
2943
* You can specify environment e.g `tox -e py36`
30-
31-
44+
* You can test the code style with `tox -e flake8`
3245

3346
Create Documentation
3447
--------------------
3548

3649
Run `make docs`. This will also open a documentation in a tab in your default browser.
3750

3851

39-
Usage example
40-
-------------
41-
42-
After the documentation has been created, click on `Usage` section
43-
44-
Or open `docs/usage.rst`
45-
46-
You can find some more examples under `examples/`.
47-
48-
4952
Style Guide
5053
-------------
51-
* **Type Hints**: If the type hint line is too long use inline hinting. Maximum inline type hint line should be 150 chars.
54+
* **Type Hints**: If the type hint line is too long use inline hinting. Maximum inline type hint line should be 150 chars.
55+
56+
License
57+
-------------
58+
The MIT License (MIT). Please see `License File`_ for more information.
59+
60+
.. _License File: https://github.com/hetznercloud/hcloud-python/blob/master/LICENSE
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
$(document).ready(function() {
2+
$("a[href^='http']").attr('target','_blank');
3+
});
Lines changed: 7 additions & 0 deletions
Loading

docs/api.clients.actions.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
ActionsClient
2+
==================
3+
4+
5+
.. autoclass:: hcloud.actions.client.ActionsClient
6+
:members:
7+
8+
.. autoclass:: hcloud.actions.client.BoundAction
9+
:members:
10+
11+
.. autoclass:: hcloud.actions.domain.Action
12+
:members:
13+

docs/api.clients.datacenters.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
DatacentersClient
2+
==================
3+
4+
5+
.. autoclass:: hcloud.datacenters.client.DatacentersClient
6+
:members:
7+
8+
.. autoclass:: hcloud.datacenters.client.BoundDatacenter
9+
:members:
10+
11+
.. autoclass:: hcloud.datacenters.domain.Datacenter
12+
:members:
13+
14+
.. autoclass:: hcloud.datacenters.domain.DatacenterServerTypes
15+
:members:
16+

0 commit comments

Comments
 (0)