You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by bo...@apache.org on 2023/03/06 20:51:00 UTC
[streampipes] branch 1375-versioning-for-python-docs created (now 60fc13e8b)
This is an automated email from the ASF dual-hosted git repository.
bossenti pushed a change to branch 1375-versioning-for-python-docs
in repository https://gitbox.apache.org/repos/asf/streampipes.git
at 60fc13e8b adapt GitHub workflow for python docs creation (#1375)
This branch includes the following new commits:
new 2289193ed add mike as versioning provider for python docs (#1375)
new 60fc13e8b adapt GitHub workflow for python docs creation (#1375)
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[streampipes] 02/02: adapt GitHub workflow for python docs creation (#1375)
Posted by bo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
bossenti pushed a commit to branch 1375-versioning-for-python-docs
in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit 60fc13e8b320453466efa3bede2c7f52b02d353b
Author: bossenti <bo...@posteo.de>
AuthorDate: Mon Mar 6 21:50:40 2023 +0100
adapt GitHub workflow for python docs creation (#1375)
---
.github/workflows/python-docs.yml | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/python-docs.yml b/.github/workflows/python-docs.yml
index 51edf741b..49d8b8b83 100644
--- a/.github/workflows/python-docs.yml
+++ b/.github/workflows/python-docs.yml
@@ -16,6 +16,7 @@
name: "build-python-docs-and-share-as-artifact"
on:
+ workflow_dispatch:
schedule:
- cron: "0 2 * * 6" # runs every saturday at 00:00:00
@@ -26,6 +27,13 @@ jobs:
- name: clone
uses: actions/checkout@v3
+ - name: create working branch
+ uses: peterjgrainger/action-create-branch@v2.2.0
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ branch: 'build-python-docs-${{ github.run_id }}'
+
- name: Set up Python
uses: actions/setup-python@v4
with:
@@ -49,11 +57,15 @@ jobs:
- name: Build Python docs
working-directory: ./streampipes-client-python
run: |
- make doc
+ mike deploy dev --deploy-prefix ./streampipes-client-python/docs-tmp -b feature/python-doc-versioning
- name: Publish Python docs as artifact
uses: actions/upload-artifact@v3
with:
name: streampipes-python-docs
- path: streampipes-client-python/site/**/*
+ path: streampipes-client-python/docs-tmp/**/*
retention-days: 5
+
+ - name: remove branch
+ run: |
+ git push origin --delete build-python-docs-${{ github.run_id }}
[streampipes] 01/02: add mike as versioning provider for python docs (#1375)
Posted by bo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
bossenti pushed a commit to branch 1375-versioning-for-python-docs
in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit 2289193ed8bc5eab30719ee2349255d7298c6cd0
Author: bossenti <bo...@posteo.de>
AuthorDate: Mon Mar 6 21:38:00 2023 +0100
add mike as versioning provider for python docs (#1375)
Signed-off-by: bossenti <bo...@posteo.de>
---
streampipes-client-python/mkdocs.yml | 34 +++++++++++++++++++++-------------
streampipes-client-python/setup.py | 3 ++-
2 files changed, 23 insertions(+), 14 deletions(-)
diff --git a/streampipes-client-python/mkdocs.yml b/streampipes-client-python/mkdocs.yml
index e73ef072c..373d76c86 100644
--- a/streampipes-client-python/mkdocs.yml
+++ b/streampipes-client-python/mkdocs.yml
@@ -38,6 +38,9 @@ extra:
- icon: fontawesome/brands/github-alt
link: https://github.com/apache/streampipes
+ version:
+ provider: mike
+
# Extensions
markdown_extensions:
- admonition
@@ -51,8 +54,8 @@ markdown_extensions:
- pymdownx.details
- pymdownx.superfences
- pymdownx.highlight:
- use_pygments: true
- pygments_lang_class: true
+ use_pygments: true
+ pygments_lang_class: true
plugins:
- awesome-pages
@@ -71,19 +74,24 @@ plugins:
docstring_section_style: spacy
show_source: False
merge_init_into_class: True
+ - mike:
+ canonical_version: 'latest'
+ version_selector: true
+ css_dir: css
+ javascript_dir: js
extra_css:
- stylesheets/extra.css
nav:
- - Home: index.md
- - Getting Started:
- - First Steps: getting-started/first-steps.md
- - Developing & Contributing: getting-started/developing.md
- - Quickstart: getting-started/quickstart.md
- - Examples:
- - Introduction to the StreamPipes Python Client: examples/1-introduction-to-streampipes-python-client.ipynb
- - Extracting Data from the StreamPipes Data Lake: examples/2-extracting-data-from-the-streampipes-data-lake.ipynb
- - Exploring Live Data from a StreamPipes Data Stream: examples/3-getting-live-data-from-the-streampipes-data-stream.ipynb
- - Applying Online Machine Learning on a StreamPipes Data Stream: examples/4-using-online-machine-learning-on-a-streampipes-data-stream.ipynb
- - Reference: reference/*
+ - Home: index.md
+ - Getting Started:
+ - First Steps: getting-started/first-steps.md
+ - Developing & Contributing: getting-started/developing.md
+ - Quickstart: getting-started/quickstart.md
+ - Examples:
+ - Introduction to the StreamPipes Python Client: examples/1-introduction-to-streampipes-python-client.ipynb
+ - Extracting Data from the StreamPipes Data Lake: examples/2-extracting-data-from-the-streampipes-data-lake.ipynb
+ - Exploring Live Data from a StreamPipes Data Stream: examples/3-getting-live-data-from-the-streampipes-data-stream.ipynb
+ - Applying Online Machine Learning on a StreamPipes Data Stream: examples/4-using-online-machine-learning-on-a-streampipes-data-stream.ipynb
+ - Reference: reference/*
diff --git a/streampipes-client-python/setup.py b/streampipes-client-python/setup.py
index cb8f767db..83ab524d5 100644
--- a/streampipes-client-python/setup.py
+++ b/streampipes-client-python/setup.py
@@ -63,7 +63,8 @@ docs_packages = [
"mkdocs-gen-files==0.4.0",
"mkdocs-literate-nav==0.6.0",
"numpydoc==1.5.0",
- "mkdocs-jupyter==0.22.0 "
+ "mkdocs-jupyter==0.22.0",
+ "mike @ git+https://github.com/jimporter/mike.git@872f72def32f588908f8251fe512189e0c41f4e2"
]
here = os.path.abspath(os.path.dirname(__file__))