This repository was archived by the owner on Sep 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
#29: Use sphinx for documentation #31
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
0fe4d5c
First test to use sphinx for documentation
tkilias 6921bb6
Properly setup sphinx and transformed README to rst. Use poethepoet t…
tkilias 4ba663f
Test rst references
tkilias d8b4cd7
Add deployment script for the documentation to github pages. Add .git…
tkilias 441006e
Add deployment scripts for sphinx documentation
tkilias 9f201f3
Update poetry version in CI
tkilias bc66fc0
Add poetry install to install packages
tkilias 4c2665d
Ignore github-pages/* branches
tkilias 1a0e039
Remove markdown residuals from README
tkilias 70f6719
add git fetch into github_pages_docs* CI scripts
tkilias 05ee4d0
Remove ref to user guide from README
tkilias 86df39d
Test checkout in CI if it is sufficient for commit-html-doc-to-github…
tkilias 9674a58
Remove empty headlines from README
tkilias 3f40cfa
debug github CI github_pages_docs_for_current.yaml
tkilias 1c4675e
debug github CI github_pages_docs_for_current.yaml
tkilias bd3494f
debug github CI github_pages_docs_for_current.yaml
tkilias 8644311
debug github CI github_pages_docs_for_current.yaml
tkilias f879efc
Use workaround to set new github-pages branch to the correct commit id
tkilias 5ff0532
debug github CI github_pages_docs_for_current.yaml
tkilias fdc7813
Fix structure of sphinx docu and start with content conversion
tkilias c157eea
Allow multiple versions of the documentation live in the same branch.…
tkilias af8859e
Move git user config before the git commit for the deployment
tkilias 7a825a5
Fix review suggestions and check_github_pages_docs_for_feature_branch…
tkilias 53ae6e0
Fix executable permissions for doc shell scripts
tkilias 020ee69
Reconstruct and improve the content of the documentation
tkilias c7fc472
Fix copyright in documentation
02eeb7e
Fix the checkout of a new target branch in deploy-to-github-pages.sh
3df785d
Use origin branches for MAIN and ROOT in deploy-to-github-pages.sh
e3d4f7e
Add explanation for default branches github-pages/main and github-pag…
0a5d27f
Add issue to changes_0.1.0.md and fix missing empty line
038de81
Apply suggestions from code review
tkilias 99ebd60
Add the creation of the new root commit to doc/deploy-to-github-pages.sh
d46a9ad
Adding intitial eplaination about how to build the documentation to t…
8096638
Move git config user to the beginning in doc/deploy-to-github-pages.sh
8322032
Apply suggestions from code review
tkilias 944041d
Apply suggestions from code review
tkilias 11039fe
Apply suggestions from code review
5ae0fc7
Moved setting the github user config to the CI jobs
tkilias File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
.github/workflows/check_github_pages_docs_for_feature_branch.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| name: Check documentation build and deployment for feature branch | ||
|
|
||
| on: | ||
| push: | ||
| branches-ignore: | ||
| - main | ||
| - github-pages/* | ||
|
|
||
| jobs: | ||
| create_github_pages_docs: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python-version: [3.6] | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v2 | ||
| - name: Install python | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install poetry | ||
| uses: abatilo/actions-poetry@v2.0.0 | ||
| with: | ||
| poetry-version: 1.1.4 | ||
| - name: Poetry install | ||
| run: poetry install | ||
| - name: Test documentation deployment for current feature branch | ||
| run: | | ||
| git config --local user.email "opensource@exasol.com" | ||
| git config --local user.name "GitHub Action" | ||
| git fetch | ||
| SOURCE_BRANCH="$(git rev-parse --abbrev-ref HEAD)" | ||
| TARGET_BRANCH="$(doc/get_target_branch_name.sh "$SOURCE_BRANCH")" | ||
| poetry run poe push-html-doc-to-github-pages-current || echo | ||
| git push origin --delete "$TARGET_BRANCH" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| name: Build and push documentation for main branch | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| jobs: | ||
| create_github_pages_docs: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python-version: [3.6] | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v2 | ||
| - name: Install python | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install poetry | ||
| uses: abatilo/actions-poetry@v2.0.0 | ||
| with: | ||
| poetry-version: 1.1.4 | ||
| - name: Poetry install | ||
| run: poetry install | ||
| - name: Deploy documentation to github-pages-main branch | ||
| run: | | ||
| git config --local user.email "opensource@exasol.com" | ||
| git config --local user.name "GitHub Action" | ||
| git fetch | ||
| poetry run poe push-html-doc-to-github-pages-main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -132,4 +132,7 @@ dmypy.json | |
| poetry.lock | ||
|
|
||
| # PyCharm | ||
| .idea | ||
| .idea | ||
|
|
||
| # Sphinx | ||
| doc/_build | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| ##################### | ||
| BucketFS Utils Python | ||
| ##################### | ||
|
|
||
| ******** | ||
| Overview | ||
| ******** | ||
|
|
||
| This project provides a python library for accessing the Exasol BucketFS system. | ||
| It provides functions to upload and download files to and from the BucketFS. | ||
|
|
||
| In a Nutshell | ||
| ============= | ||
|
|
||
| Prerequisites | ||
| ------------- | ||
|
|
||
| - Python 3.6+ | ||
|
|
||
| Installation | ||
| ------------- | ||
|
|
||
| Install the package from Github via `pip`:: | ||
|
|
||
| pip install -e git://github.com/exasol/bucketfs-utils-python.git@{tag name}#egg=exasol-bucketfs-utils-python | ||
|
|
||
| Documentation | ||
| ------------- | ||
|
|
||
| `Documentation for the latest release text <https://exasol.github.io/bucketfs-utils-python/>`_ is hosted on the Github Pages of this project. | ||
|
|
||
| Features | ||
| ======== | ||
|
|
||
| * Download or upload files from/to the Exasol BucketFS | ||
| * Supported sources and targets for the uploads and downloads: | ||
|
|
||
| * Files on the local Filesystem | ||
| * Python file objects | ||
| * Python Strings | ||
| * Python objects ((De-)Serialization with [Joblib](https://joblib.readthedocs.io/en/latest/persistence.html)) | ||
|
|
||
| * Loading an artefact from a public Github Release into the BucketFS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # Minimal makefile for Sphinx documentation | ||
| # | ||
|
|
||
| # You can set these variables from the command line, and also | ||
| # from the environment for the first two. | ||
| SPHINXOPTS ?= | ||
| SPHINXBUILD ?= sphinx-build | ||
| SPHINXAPIDOC ?= sphinx-apidoc | ||
| SOURCEDIR = . | ||
| BUILDDIR = _build | ||
| MODULES_PATH = ../exasol_bucketfs_utils_python | ||
| APIDOC_OUTPUT = api | ||
|
|
||
| # Put it first so that "make" without argument is like "make help". | ||
| help: | ||
| @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
|
||
| .PHONY: help Makefile | ||
|
|
||
| api-doc: | ||
| @$(SPHINXAPIDOC) -T -d 1 --separate -o "$(APIDOC_OUTPUT)" "$(MODULES_PATH)" | ||
|
|
||
| clean-build: | ||
| [ ! -e "$(BUILDDIR)" ] || rm -r "$(BUILDDIR)" | ||
| [ ! -e "$(APIDOC_OUTPUT)" ] || rm -r "$(APIDOC_OUTPUT)" | ||
|
|
||
| # Catch-all target: route all unknown targets to Sphinx using the new | ||
| # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
| %: Makefile api-doc | ||
| @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
Empty file.
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| exasol\_bucketfs\_utils\_python.bucket\_config module | ||
| ===================================================== | ||
|
|
||
| .. automodule:: exasol_bucketfs_utils_python.bucket_config | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| exasol\_bucketfs\_utils\_python.bucketfs\_config module | ||
| ======================================================= | ||
|
|
||
| .. automodule:: exasol_bucketfs_utils_python.bucketfs_config | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: |
7 changes: 7 additions & 0 deletions
7
doc/api/exasol_bucketfs_utils_python.bucketfs_connection_config.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| exasol\_bucketfs\_utils\_python.bucketfs\_connection\_config module | ||
| =================================================================== | ||
|
|
||
| .. automodule:: exasol_bucketfs_utils_python.bucketfs_connection_config | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| exasol\_bucketfs\_utils\_python.bucketfs\_utils module | ||
| ====================================================== | ||
|
|
||
| .. automodule:: exasol_bucketfs_utils_python.bucketfs_utils | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| exasol\_bucketfs\_utils\_python.download module | ||
| =============================================== | ||
|
|
||
| .. automodule:: exasol_bucketfs_utils_python.download | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: |
7 changes: 7 additions & 0 deletions
7
doc/api/exasol_bucketfs_utils_python.github_release_file_bucketfs_uploader.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| exasol\_bucketfs\_utils\_python.github\_release\_file\_bucketfs\_uploader module | ||
| ================================================================================ | ||
|
|
||
| .. automodule:: exasol_bucketfs_utils_python.github_release_file_bucketfs_uploader | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: |
7 changes: 7 additions & 0 deletions
7
doc/api/exasol_bucketfs_utils_python.release_link_extractor.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| exasol\_bucketfs\_utils\_python.release\_link\_extractor module | ||
| =============================================================== | ||
|
|
||
| .. automodule:: exasol_bucketfs_utils_python.release_link_extractor | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| exasol\_bucketfs\_utils\_python package | ||
| ======================================= | ||
|
|
||
| Submodules | ||
| ---------- | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 1 | ||
|
|
||
| exasol_bucketfs_utils_python.bucket_config | ||
| exasol_bucketfs_utils_python.bucketfs_config | ||
| exasol_bucketfs_utils_python.bucketfs_connection_config | ||
| exasol_bucketfs_utils_python.bucketfs_utils | ||
| exasol_bucketfs_utils_python.download | ||
| exasol_bucketfs_utils_python.github_release_file_bucketfs_uploader | ||
| exasol_bucketfs_utils_python.release_link_extractor | ||
| exasol_bucketfs_utils_python.upload | ||
|
|
||
| Module contents | ||
| --------------- | ||
|
|
||
| .. automodule:: exasol_bucketfs_utils_python | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| exasol\_bucketfs\_utils\_python.upload module | ||
| ============================================= | ||
|
|
||
| .. automodule:: exasol_bucketfs_utils_python.upload | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| ***************** | ||
| Changelog | ||
| ***************** | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 1 | ||
|
|
||
| changes_0.1.0.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,15 @@ | ||
| # BucketFS Utils Python 0.1.0, released 2020-11-?? | ||
|
|
||
| # BucketFs Utily Python 0.1.0, released XYZ | ||
| Code name: Initial implementation | ||
|
|
||
| ## Features | ||
| ## Summary | ||
|
|
||
| ### Features | ||
|
|
||
| - #1: Added initial implementation. | ||
| - #6: Download file into fileobj, string or file | ||
| - #7: Upload file, string or fileboj | ||
| - #29: Add sphinx documentation | ||
|
|
||
| ### Refactorings | ||
|
|
||
tkilias marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| #1: Added initial implementation. | ||
| - #15: Remove DepHell dependency, because it is not maintained anymore | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.