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: change from pdoc to sphinx #136

Merged
merged 5 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
run: |
poetry install

- run: poetry run pdoc laceworksdk --logo https://techally-content.s3-us-west-1.amazonaws.com/public-content/lacework_logo_full.png -o docs/
- run: poetry run poe docs

- uses: actions/upload-pages-artifact@v1
with:
path: docs/
path: docs/html

# Deploy the artifact to GitHub pages.
deploy:
Expand Down
67 changes: 67 additions & 0 deletions docs-source/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

import os
import sys
sys.path.insert(0, os.path.abspath('../laceworksdk'))

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = 'Lacework Python SDK'
copyright = '2023, Lacework'
author = 'Jon Stewart, Tim MacDonald'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = ['sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'sphinx.ext.coverage',
'sphinx.ext.mathjax',
'sphinx.ext.ifconfig',
'sphinx.ext.viewcode',
'sphinx.ext.githubpages',
'sphinx.ext.napoleon']

# Napoleon settings
napoleon_google_docstring = True
napoleon_numpy_docstring = True
napoleon_include_init_with_doc = True
napoleon_include_private_with_doc = True
napoleon_include_special_with_doc = True
napoleon_use_admonition_for_examples = False
napoleon_use_admonition_for_notes = False
napoleon_use_admonition_for_references = False
napoleon_use_ivar = False
napoleon_use_param = True
napoleon_use_rtype = True

templates_path = ['_templates']
exclude_patterns = []



# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']
html_logo = 'https://techally-content.s3-us-west-1.amazonaws.com/public-content/lacework_logo_full.png'
html_theme_options = {
'display_version': True,
'prev_next_buttons_location': 'bottom',
'style_external_links': False,
'vcs_pageview_mode': '',
'style_nav_header_background': 'white',
# Toc options
'collapse_navigation': False,
'sticky_navigation': True,
'navigation_depth': -1,
'includehidden': False,
'titles_only': False
}
16 changes: 16 additions & 0 deletions docs-source/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

Welcome to Lacework Python SDK's documentation!
===============================================

.. toctree::
:maxdepth: 5

auto/modules


Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
2 changes: 2 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# The Lacework SDK docs are hosted on Github Pages [here](https://lacework.github.io/python-sdk/)

7 changes: 0 additions & 7 deletions docs/index.html

This file was deleted.

263 changes: 0 additions & 263 deletions docs/laceworksdk.html

This file was deleted.

813 changes: 0 additions & 813 deletions docs/laceworksdk/api.html

This file was deleted.

732 changes: 0 additions & 732 deletions docs/laceworksdk/api/base_endpoint.html

This file was deleted.

776 changes: 0 additions & 776 deletions docs/laceworksdk/api/crud_endpoint.html

This file was deleted.

457 changes: 0 additions & 457 deletions docs/laceworksdk/api/read_endpoint.html

This file was deleted.

477 changes: 0 additions & 477 deletions docs/laceworksdk/api/search_endpoint.html

This file was deleted.

248 changes: 0 additions & 248 deletions docs/laceworksdk/api/v1.html

This file was deleted.

270 changes: 0 additions & 270 deletions docs/laceworksdk/api/v2.html

This file was deleted.

669 changes: 0 additions & 669 deletions docs/laceworksdk/api/v2/activities.html

This file was deleted.

677 changes: 0 additions & 677 deletions docs/laceworksdk/api/v2/agent_access_tokens.html

This file was deleted.

356 changes: 0 additions & 356 deletions docs/laceworksdk/api/v2/agent_info.html

This file was deleted.

960 changes: 0 additions & 960 deletions docs/laceworksdk/api/v2/alert_channels.html

This file was deleted.

834 changes: 0 additions & 834 deletions docs/laceworksdk/api/v2/alert_profiles.html

This file was deleted.

859 changes: 0 additions & 859 deletions docs/laceworksdk/api/v2/alert_rules.html

This file was deleted.

941 changes: 0 additions & 941 deletions docs/laceworksdk/api/v2/alerts.html

This file was deleted.

534 changes: 0 additions & 534 deletions docs/laceworksdk/api/v2/audit_logs.html

This file was deleted.

880 changes: 0 additions & 880 deletions docs/laceworksdk/api/v2/cloud_accounts.html

This file was deleted.

694 changes: 0 additions & 694 deletions docs/laceworksdk/api/v2/cloud_activities.html

This file was deleted.

588 changes: 0 additions & 588 deletions docs/laceworksdk/api/v2/configs.html

This file was deleted.

880 changes: 0 additions & 880 deletions docs/laceworksdk/api/v2/container_registries.html

This file was deleted.

439 changes: 0 additions & 439 deletions docs/laceworksdk/api/v2/contract_info.html

This file was deleted.

646 changes: 0 additions & 646 deletions docs/laceworksdk/api/v2/datasources.html

This file was deleted.

1,432 changes: 0 additions & 1,432 deletions docs/laceworksdk/api/v2/entities.html

This file was deleted.

652 changes: 0 additions & 652 deletions docs/laceworksdk/api/v2/events.html

This file was deleted.

533 changes: 0 additions & 533 deletions docs/laceworksdk/api/v2/inventory.html

This file was deleted.

408 changes: 0 additions & 408 deletions docs/laceworksdk/api/v2/organization_info.html

This file was deleted.

1,169 changes: 0 additions & 1,169 deletions docs/laceworksdk/api/v2/policies.html

This file was deleted.

869 changes: 0 additions & 869 deletions docs/laceworksdk/api/v2/policy_exceptions.html

This file was deleted.

1,120 changes: 0 additions & 1,120 deletions docs/laceworksdk/api/v2/queries.html

This file was deleted.

1,057 changes: 0 additions & 1,057 deletions docs/laceworksdk/api/v2/report_definitions.html

This file was deleted.

863 changes: 0 additions & 863 deletions docs/laceworksdk/api/v2/report_rules.html

This file was deleted.

540 changes: 0 additions & 540 deletions docs/laceworksdk/api/v2/reports.html

This file was deleted.

808 changes: 0 additions & 808 deletions docs/laceworksdk/api/v2/resource_groups.html

This file was deleted.

492 changes: 0 additions & 492 deletions docs/laceworksdk/api/v2/schemas.html

This file was deleted.

934 changes: 0 additions & 934 deletions docs/laceworksdk/api/v2/team_members.html

This file was deleted.

764 changes: 0 additions & 764 deletions docs/laceworksdk/api/v2/team_users.html

This file was deleted.

467 changes: 0 additions & 467 deletions docs/laceworksdk/api/v2/user_groups.html

This file was deleted.

408 changes: 0 additions & 408 deletions docs/laceworksdk/api/v2/user_profile.html

This file was deleted.

927 changes: 0 additions & 927 deletions docs/laceworksdk/api/v2/vulnerabilities.html

This file was deleted.

1,018 changes: 0 additions & 1,018 deletions docs/laceworksdk/api/v2/vulnerability_exceptions.html

This file was deleted.

1,040 changes: 0 additions & 1,040 deletions docs/laceworksdk/api/v2/vulnerability_policies.html

This file was deleted.

265 changes: 0 additions & 265 deletions docs/laceworksdk/config.html

This file was deleted.

692 changes: 0 additions & 692 deletions docs/laceworksdk/exceptions.html

This file was deleted.

1,671 changes: 0 additions & 1,671 deletions docs/laceworksdk/http_session.html

This file was deleted.

243 changes: 0 additions & 243 deletions docs/laceworksdk/version.html

This file was deleted.

46 changes: 0 additions & 46 deletions docs/search.js

This file was deleted.

Loading
Loading