Skip to content

Commit

Permalink
Merge pull request #409 from fedejaure/feature-add-documentation
Browse files Browse the repository at this point in the history
Adding basic mkdocs files
  • Loading branch information
fedejaure authored Oct 4, 2024
2 parents c69fa4e + 275f2ce commit cd25ba2
Show file tree
Hide file tree
Showing 38 changed files with 1,571 additions and 336 deletions.
1 change: 1 addition & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ exclude_paths:
- .cache/
- ~/.cache/ansible-lint/
- ~/.cache/ansible-compat/
- mkdocs.yml
warn_list:
- galaxy[version-incorrect]
66 changes: 66 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: docs

on:
push:
tags:
- 'v*'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install system deps
shell: bash
run: |
pip install poetry
pip install poetry-plugin-export
poetry config virtualenvs.in-project true
poetry install --only docs --sync
- name: Build docs
shell: bash
run: poetry run inv docs

- name: Setup Pages
uses: actions/[email protected]

- name: Upload artifact
uses: actions/[email protected]
with:
# Upload entire repository
path: 'site/'

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/[email protected]
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ repos:
- id: check-toml
- id: check-json
- id: check-yaml
args: ['--unsafe']
- id: debug-statements
- id: check-merge-conflict
- id: pretty-format-json
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]
### Added
- Docs site.

- MacOS Tools/Packages:
* Ubuntu Nerd Font.
* Ubuntu Mono Nerd Font.
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ mostly guidelines, not rules. Use your best judgment, and feel free to propose c

We take our open source community seriously and hold ourselves and other contributors to high standards of communication. By participating and contributing to this project, you agree to uphold our [Code of Conduct](CODE_OF_CONDUCT.md).


## Getting Started

### Requirements
Expand Down
3 changes: 1 addition & 2 deletions LICENSE.rst → LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

MIT License
===========
# MIT License

Copyright (c) 2022, Federico Jaureguialzo

Expand Down
Loading

0 comments on commit cd25ba2

Please sign in to comment.