Skip to content

Commit 5737d4a

Browse files
Setup Readthedocs and create documentation (#3)
* Fix quickstart URL * Setup readthedocs build * Setup index in markdonw * Setup Sphinx build and layout * Begin writing documentation for public users * Create Userguide for dashboards. Add todos for remaining files * Add Full install, exporters, and alerting docs
1 parent 2be7755 commit 5737d4a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+883
-194
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Custom ignores
22
observability/examples/simple/observability-simple
3-
3+
_build
44

55
# Python ignores
66
# Byte-compiled / optimized / DLL files

.readthedocs.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
version: 2
6+
7+
build:
8+
os: ubuntu-20.04
9+
tools:
10+
python: "3.9"
11+
12+
sphinx:
13+
configuration: docs/conf.py
14+
15+
python:
16+
install:
17+
- requirements: docs/requirements.txt

docs/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = .
9+
BUILDDIR = _build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
17 KB
Loading
133 KB
Loading
132 KB
Loading
89.8 KB
Loading
99.9 KB
Loading

docs/conf.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Configuration file for the Sphinx documentation builder.
2+
#
3+
# For the full list of built-in configuration values, see the documentation:
4+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
5+
import os
6+
import sys
7+
sys.path.insert(0, os.path.abspath("../observability/docs"))
8+
9+
print("Hello")
10+
# -- Project information -----------------------------------------------------
11+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
12+
13+
project = 'CogStack Platform Toolkit'
14+
copyright = '2025, CogStack Org'
15+
author = 'CogStack Org'
16+
release = 'latest'
17+
html_title = "CogStack Platform Toolkit"
18+
19+
# -- General configuration ---------------------------------------------------
20+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
21+
22+
extensions = [
23+
'sphinx_rtd_theme',
24+
'sphinx.ext.autodoc',
25+
'myst_parser',
26+
'sphinx.ext.inheritance_diagram',
27+
]
28+
templates_path = ['_templates']
29+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
30+
31+
32+
33+
# -- Options for HTML output -------------------------------------------------
34+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
35+
36+
html_theme = "furo"
37+
html_static_path = ['_static']

docs/index.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
# Cogstack Platform Toolit
3+
4+
This project provides utilities for running Cogstack in production.
5+
6+
- [CogStack Observability](observability/_index.md)
7+
8+
```{toctree}
9+
:hidden:
10+
11+
observability/_index
12+
13+
```
14+
15+

0 commit comments

Comments
 (0)