Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(markdown): migrate docs from rst to md #422

Merged
merged 8 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
artemrys marked this conversation as resolved.
Show resolved Hide resolved
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ celerybeat.pid

# Environments
.env
.venv
# ignore all venv with different Py versions
.venv*
env/
venv/
ENV/
env.bak/
venv.bak/
Expand Down
17 changes: 0 additions & 17 deletions .readthedocs.yml

This file was deleted.

20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

15 changes: 0 additions & 15 deletions docs/api_reference.rst

This file was deleted.

3 changes: 3 additions & 0 deletions docs/api_reference/backend_confs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# backend_confs

::: pytest_splunk_addon_ui_smartx.backend_confs
3 changes: 3 additions & 0 deletions docs/api_reference/base_test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# base_test

::: pytest_splunk_addon_ui_smartx.base_test
3 changes: 3 additions & 0 deletions docs/api_reference/components/base_component.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Base Component

::: pytest_splunk_addon_ui_smartx.components.base_component
3 changes: 3 additions & 0 deletions docs/api_reference/components/conf_table.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Conf Table

::: pytest_splunk_addon_ui_smartx.components.conf_table
3 changes: 3 additions & 0 deletions docs/api_reference/components/controls/base_control.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Base Control

::: pytest_splunk_addon_ui_smartx.components.controls.base_control
3 changes: 3 additions & 0 deletions docs/api_reference/components/controls/button.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Button

::: pytest_splunk_addon_ui_smartx.components.controls.button
3 changes: 3 additions & 0 deletions docs/api_reference/components/controls/checkbox.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Checkbox

::: pytest_splunk_addon_ui_smartx.components.controls.checkbox
14 changes: 14 additions & 0 deletions docs/api_reference/components/controls/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Controls

The following is the API Reference for SmartX Controls:

+ [Base Control](base_control.md)
+ [Button](button.md)
+ [Checkbox](checkbox.md)
+ [Learn More](learn_more.md)
+ [Message](message.md)
+ [Multi Select](multi_select.md)
+ [Oauth Select](oauth_select.md)
+ [Single Select](single_select.md)
+ [Textbox](textbox.md)
+ [Toggle](toggle.md)
3 changes: 3 additions & 0 deletions docs/api_reference/components/controls/learn_more.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Learn More

::: pytest_splunk_addon_ui_smartx.components.controls.learn_more
3 changes: 3 additions & 0 deletions docs/api_reference/components/controls/message.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Message

::: pytest_splunk_addon_ui_smartx.components.controls.message
3 changes: 3 additions & 0 deletions docs/api_reference/components/controls/multi_select.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Multi Select

::: pytest_splunk_addon_ui_smartx.components.controls.multi_select
3 changes: 3 additions & 0 deletions docs/api_reference/components/controls/oauth_select.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Oauth Select

::: pytest_splunk_addon_ui_smartx.components.controls.oauth_select
3 changes: 3 additions & 0 deletions docs/api_reference/components/controls/single_select.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Single Select

::: pytest_splunk_addon_ui_smartx.components.controls.single_select
3 changes: 3 additions & 0 deletions docs/api_reference/components/controls/textbox.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Textbox

::: pytest_splunk_addon_ui_smartx.components.controls.textbox
3 changes: 3 additions & 0 deletions docs/api_reference/components/controls/toggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Toggle

::: pytest_splunk_addon_ui_smartx.components.controls.toggle
3 changes: 3 additions & 0 deletions docs/api_reference/components/dropdown.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Dropdown

::: pytest_splunk_addon_ui_smartx.components.dropdown
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
Entity
======
# Entity

artemrys marked this conversation as resolved.
Show resolved Hide resolved
.. automodule:: pytest_splunk_addon_ui_smartx.components.entity
:members:
:show-inheritance:
12 changes: 12 additions & 0 deletions docs/api_reference/components/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Components

The following is the API Reference for SmartX Components:

+ [Base Component](base_component.md)
+ [Conf Table](conf_table.md)
+ [Dropdown](dropdown.md)
+ [Entity](entity.md)
+ [Input table](input_table.md)
+ [Login](login.md)
+ [Table](table.md)
+ [Tabs](tabs.md)
3 changes: 3 additions & 0 deletions docs/api_reference/components/input_table.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Input table

::: pytest_splunk_addon_ui_smartx.components.input_table
3 changes: 3 additions & 0 deletions docs/api_reference/components/login.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Login

::: pytest_splunk_addon_ui_smartx.components.login
3 changes: 3 additions & 0 deletions docs/api_reference/components/table.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Table

::: pytest_splunk_addon_ui_smartx.components.table
3 changes: 3 additions & 0 deletions docs/api_reference/components/tabs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Tabs

::: pytest_splunk_addon_ui_smartx.components.tabs
32 changes: 32 additions & 0 deletions docs/api_reference/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

The following is the API Reference for SmartX:
artemrys marked this conversation as resolved.
Show resolved Hide resolved

- [backend_conf](backend_confs.md)
- [base_test](base_test.md)
- [plugin](plugin.md)
- [utils](utils.md)
- [Pages](pages/index.md)
+ [Logging](pages/logging.md)
+ [Login](pages/login.md)
+ [Page](pages/page.md)
+ [Proxy](pages/proxy.md)
- [Components](components/index.md)
+ [Base Component](components/base_component.md)
+ [Conf Table](components/conf_table.md)
+ [Dropdown](components/dropdown.md)
+ [Entity](components/entity.md)
+ [Input table](components/input_table.md)
+ [Login](components/login.md)
+ [Table](components/table.md)
+ [Tabs](components/tabs.md)
- [Controls](components/controls/index.md)
+ [Base Control](components/controls/base_control.md)
+ [Button](components/controls/button.md)
+ [Checkbox](components/controls/checkbox.md)
+ [Learn More](components/controls/learn_more.md)
+ [Message](components/controls/message.md)
+ [Multi Select](components/controls/multi_select.md)
+ [Oauth Select](components/controls/oauth_select.md)
+ [Single Select](components/controls/single_select.md)
+ [Textbox](components/controls/textbox.md)
+ [Toggle](components/controls/toggle.md)
8 changes: 8 additions & 0 deletions docs/api_reference/pages/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Pages

The following is the API Reference for SmartX Pages:

+ [Logging](logging.md)
+ [Login](login.md)
+ [Page](page.md)
+ [Proxy](proxy.md)
3 changes: 3 additions & 0 deletions docs/api_reference/pages/logging.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Logging

::: pytest_splunk_addon_ui_smartx.pages.logging
3 changes: 3 additions & 0 deletions docs/api_reference/pages/login.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Login

::: pytest_splunk_addon_ui_smartx.pages.login
3 changes: 3 additions & 0 deletions docs/api_reference/pages/page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Page

::: pytest_splunk_addon_ui_smartx.pages.page
3 changes: 3 additions & 0 deletions docs/api_reference/pages/proxy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Proxy

::: pytest_splunk_addon_ui_smartx.pages.proxy
3 changes: 3 additions & 0 deletions docs/api_reference/plugin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# plugin

::: pytest_splunk_addon_ui_smartx.plugin
3 changes: 3 additions & 0 deletions docs/api_reference/utils.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# utils

::: pytest_splunk_addon_ui_smartx.utils
6 changes: 0 additions & 6 deletions docs/backend_confs.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/base_test.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/components/base_component.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/components/conf_table.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/components/controls/base_control.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/components/controls/button.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/components/controls/checkbox.rst

This file was deleted.

19 changes: 0 additions & 19 deletions docs/components/controls/index.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/components/controls/learn_more.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/components/controls/message.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/components/controls/multi_select.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/components/controls/oauth_select.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/components/controls/single_select.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/components/controls/textbox.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/components/controls/toggle.rst

This file was deleted.

Loading
Loading