Skip to content

Commit

Permalink
Merge pull request #12 from PhilipPartsch/merge_from_template
Browse files Browse the repository at this point in the history
merge content from template repo
  • Loading branch information
PhilipPartsch authored Dec 29, 2024
2 parents 1aef492 + 0955489 commit 00c8422
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 15 deletions.
38 changes: 30 additions & 8 deletions .github/workflows/builddoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@ jobs:
python-version: "3"
cache: 'pip' # caching pip dependencies
- name: print versions for debugging
run: python --version ; pip --version ; whoami
run: python --version ; pip --version ; whoami ; pwd
- name: Install graphviz & default-jdk
run: sudo apt-get install graphviz default-jdk
run: |
sudo apt-get update
sudo apt-get upgrade --yes
sudo apt-get install graphviz default-jdk
sudo apt-get upgrade --yes
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -44,6 +48,11 @@ jobs:
- name: Lint the project with sphinx-lint
run: |
sphinx-lint
- name: Lint the project with vale
uses: errata-ai/[email protected]
with:
# github-pr-check, github-pr-review, github-check
reporter: github-check
- name: Test with pytest
run: |
coverage run --branch --data-file=./docs/_static/_external_data/coverage.file -m pytest ./tests/ --junitxml=./docs/_static/_external_data/merge_dicts_test_results.xml --report-log=./docs/_static/_external_data/merge_dicts_test_log.json
Expand All @@ -70,9 +79,6 @@ jobs:
./docs/_static/_external_data/coverage_html
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Render the documentation
run: >
sphinx-build
Expand All @@ -82,10 +88,13 @@ jobs:
--show-traceback
--fail-on-warning
--keep-going
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
- name: Archive sphinx public folder
uses: actions/upload-artifact@v4
with:
path: ./public
name: sphinx-public
path: |
./public/
# Deployment job
deploy:
Expand All @@ -96,6 +105,19 @@ jobs:
needs: build
if: github.ref == 'refs/heads/main'
steps:
- name: Download sphinx public folder
uses: actions/download-artifact@v4
with:
name: sphinx-public
path: ./public/
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

13 changes: 13 additions & 0 deletions .vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
StylesPath = styles
MinAlertLevel = suggestion

Packages = proselint, Joblint
# write-good, Google, Microsoft, alex, Joblint

# Here's were we define the exceptions to use in *all* `BasedOnStyles`.
Vocab = merge_dicts

[*.rst]
BasedOnStyles = Vale, proselint, Joblint
# write-good, Google, Microsoft, alex, Joblint

5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"files.trimTrailingWhitespace": true,

"editor.rulers": [
80
100
],
"editor.tabSize": 3,
"editor.renderWhitespace": "all",

}
}

7 changes: 5 additions & 2 deletions docs/_tools/readme.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
Tools
=====

Here we collect binary tools which do not support code import.
Here we collect binary tools which don't support code import.

Please pay attention, if you want to execute a tool in a pipeline,
you have to set the execution bit for UNIX OS based systems.

Please pay attention, if you want to execute a tool in a pipeline, you have to set the execution bit for UNIX OS based systems.
| Please do so with:
| `git update-index --chmod=+x path/to/tool`
and normal git commit handling.

2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. include:: ../README.rst
.. include:: ../readme.rst

**merge_dicts** is a Python library to merge `dictionaries
<https://docs.python.org/3/tutorial/datastructures.html#dictionaries>`_.
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vale
sphinx==7.4.7
sphinxcontrib.jquery
sphinxcontrib-plantuml
Expand Down
4 changes: 2 additions & 2 deletions README.rst → readme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ This side is been hosted on:

- GitLab
- Repository: https://gitlab.com/PhilipPartsch/reconf2023-product-as-code
- Gitlab Pipeline: https://gitlab.com/PhilipPartsch/reconf2023-product-as-code/-/pipelines
- Gitlab Pipeline Script: https://gitlab.com/PhilipPartsch/reconf2023-product-as-code/-/blob/main/.gitlab-ci.yml
- GitLab Pipeline: https://gitlab.com/PhilipPartsch/reconf2023-product-as-code/-/pipelines
- GitLab Pipeline Script: https://gitlab.com/PhilipPartsch/reconf2023-product-as-code/-/blob/main/.gitlab-ci.yml
- GitLab hosted documentation: https://reconf2023-product-as-code-philippartsch-a4d4571b1b7e4136d3bdb6.gitlab.io
Empty file added styles/.gitkeep
Empty file.
5 changes: 5 additions & 0 deletions styles/config/vocabularies/merge_dicts/accept.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
html
rst
xml
json
merge_dicts

0 comments on commit 00c8422

Please sign in to comment.