Skip to content

Commit

Permalink
Merge pull request #58 from semiotic-ai/50-setup-automatic-documentat…
Browse files Browse the repository at this point in the history
…ion-generation

ci(mkdocs): removed old documents and add mkdocs base build
  • Loading branch information
aasseman authored Feb 17, 2023
2 parents a5f290e + eaf5469 commit db30582
Show file tree
Hide file tree
Showing 16 changed files with 1,489 additions and 1,609 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/semver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,34 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Print image url
run: echo "Image pushed to ${{ steps.push-to-ghcr.outputs.registry-paths }}"

build_docs:
runs-on: ubuntu-latest
needs: release
if: needs.release.outputs.published == 'True'
env:
# https://github.com/actions/runner-images/issues/6185
PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring

permissions:
contents: write

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: '1.2.2'

- name: Install dependencies
run: poetry install --only docs

- name: Build documents
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
poetry run mike deploy --rebase --update-aliases v${{ needs.release.outputs.published_version }} latest
poetry run mike set-default --push latest
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white)](https://conventionalcommits.org)
[![Semantic Versioning](https://img.shields.io/badge/semver-2.0.0-green)](https://semver.org/spec/v2.0.0.html)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Docs](https://img.shields.io/github/actions/workflow/status/semiotic-ai/autoagora/semver.yml?label=docs)](https://semoitic-ai.github.io/autoagora/)

# AutoAgora

Expand Down
20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--8<-- "README.md"
35 changes: 0 additions & 35 deletions docs/make.bat

This file was deleted.

41 changes: 0 additions & 41 deletions docs/source/agents.rst

This file was deleted.

31 changes: 0 additions & 31 deletions docs/source/bandit_scripts.rst

This file was deleted.

57 changes: 0 additions & 57 deletions docs/source/conf.py

This file was deleted.

43 changes: 0 additions & 43 deletions docs/source/environments.rst

This file was deleted.

17 changes: 0 additions & 17 deletions docs/source/index.rst

This file was deleted.

13 changes: 0 additions & 13 deletions docs/source/installation.rst

This file was deleted.

2 changes: 0 additions & 2 deletions docs/source/model_generation.rst

This file was deleted.

11 changes: 0 additions & 11 deletions docs/source/price_multiplier.rst

This file was deleted.

52 changes: 52 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Project information
site_name: AutoAgora
site_url: https://semiotic-ai.github.io/autoagora/

# Repository
repo_name: semiotic-ai/autoagora
repo_url: https://github.com/semiotic-ai/autoagora
edit_uri: ""

# Configuration
theme:
name: material
features:
- navigation.tabs
- toc.integrate
icon:
repo: fontawesome/brands/github
palette:
primary: teal
accent: purple

plugins:
- search
- mkdocstrings:
default_handler: python
handlers:
python:
options:
docstring_section_style: list
members_order: source
show_root_heading: true
show_signature_annotations: true
heading_level: 3
filters: ["!_"]
- mike

# Customization
extra:
version:
provider: mike
default: latest

markdown_extensions:
- pymdownx.snippets
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format

nav:
- Home : README.md
Loading

0 comments on commit db30582

Please sign in to comment.