Skip to content

Commit

Permalink
docs: migrating to GitHub Pages (#825)
Browse files Browse the repository at this point in the history
Migrating docs from readthedocs to GitHub pages.

The existing readthedocs website will be deleted after couple of weeks.

---------

Co-authored-by: Artem Rys <[email protected]>
  • Loading branch information
harshilgajera-crest and artemrys authored Apr 26, 2024
1 parent 6a16609 commit b41129d
Show file tree
Hide file tree
Showing 53 changed files with 2,023 additions and 3,145 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,6 @@ jobs:
poetry install
poetry run pytest -v tests/unit
test-splunk-doc:
name: Test Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: 3.7
- name: Install and run tests
run: |
curl -sSL https://install.python-poetry.org | python3 - --version 1.5.1
poetry install --with docs
poetry run pytest -v -m doc tests/e2e
test-splunk-external:
runs-on: ubuntu-latest
Expand All @@ -106,7 +91,6 @@ jobs:
- pre-commit
- fossa-scan
- compliance-copyrights
- test-splunk-doc
- test-splunk-unit
strategy:
fail-fast: false
Expand Down Expand Up @@ -154,7 +138,6 @@ jobs:
- pre-commit
- fossa-scan
- compliance-copyrights
- test-splunk-doc
- test-splunk-unit
runs-on: ubuntu-latest
strategy:
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: docs
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
docs:
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.8
- run: |
curl -sSL https://install.python-poetry.org | python3 - --version 1.5.1
pip install mkdocs mkdocs-material mkdocstrings-python
- name: Deploy to GitHub Pages
if: github.ref_name == 'main'
run: mkdocs gh-deploy --force --strict
- name: Build Docs
if: github.ref_name != 'main'
run: mkdocs build
1 change: 0 additions & 1 deletion .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@ header:
- "renovate.json"
- "pytest_splunk_addon/.ignore_splunk_internal_errors"
- "pytest_splunk_addon/docker_class.py"
- "requirements.txt"
17 changes: 0 additions & 17 deletions .readthedocs.yml

This file was deleted.

12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# pytest-splunk-addon

![PyPI](https://img.shields.io/pypi/v/pytest-splunk-addon)
![Python](https://img.shields.io/pypi/pyversions/pytest-splunk-addon.svg)

## What is PSA

A Dynamic test tool for Splunk Apps and Add-ons.

## Usage

For full usage instructions, please visit the [documentation](https://splunk.github.io/pytest-splunk-addon).
205 changes: 0 additions & 205 deletions README.rst

This file was deleted.

Loading

0 comments on commit b41129d

Please sign in to comment.