Skip to content

Commit

Permalink
docs - configure docs auto build
Browse files Browse the repository at this point in the history
  • Loading branch information
jjpaulo2 committed Aug 2, 2024
1 parent e415224 commit f9263f7
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 1 deletion.
46 changes: 46 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Publish documentation
on:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
mkdocs:

runs-on: ubuntu-latest
timeout-minutes: 20
environment: github-pages

permissions:
pages: write
id-token: write

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install and configure Poetry
uses: snok/install-poetry@v1

- name: Install dependencies
run: poetry install

- name: Build the docs site
run: poetry run mkdocs build

- name: Upload site artifactory
uses: actions/upload-pages-artifact@v3
with:
path: site

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
1 change: 0 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ concurrency:
cancel-in-progress: true

jobs:

python:

strategy:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ ENV/
env.bak/
venv.bak/

# Mkdocs build
site/

# Spyder project settings
.spyderproject
.spyproject
Expand Down
5 changes: 5 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@

A simple to use abstraction over Selenium.

- [x] **Easy to use**: complex interactions are abstracted to intuitive methods.
- [x] **Clean imports**: remove the necessity of import many packages and objects. Every automation features are accessible by methods of one main object.
- [x] **Typed**: type hints grant the code readability, and turn possible to navigate through the methods with any Intellisense tool.
- [x] **Selenium safe**: the core are developed following the Selenium best-practices.

## Installation

To perform a basic installation, just run:
Expand Down
17 changes: 17 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@ repo_url: https://github.com/jjpaulo2/fastrpa

theme:
name: material
icon:
logo: fontawesome/solid/window-restore
palette:
- scheme: default
primary: green
accent: teal
toggle:
icon: material/brightness-7
name: Switch to dark mode
- scheme: slate
primary: green
accent: teal
toggle:
icon: material/brightness-4
name: Switch to light mode
features:
- search.suggest
- content.code.copy
Expand Down Expand Up @@ -41,3 +56,5 @@ markdown_extensions:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
- pymdownx.tasklist:
custom_checkbox: true

0 comments on commit f9263f7

Please sign in to comment.