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: bootstrap chisel docs #186

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
7aa6bd0
docs: add skeleton based on canonical-starter-pack
rebornplusplus Nov 26, 2024
ac96f5c
docs: configure sphinx conf.py for content reuse
rebornplusplus Nov 26, 2024
c603b11
docs: set docs index to WIP
cjdcordeiro Dec 16, 2024
0d8fbfa
docs: update landing with summary and proper links
rebornplusplus Nov 26, 2024
3631013
docs: add installation guide
rebornplusplus Nov 26, 2024
6f418c1
docs: add explanation of package slices
rebornplusplus Nov 26, 2024
f2f59e8
docs: add tutorial of getting started with Chisel
rebornplusplus Nov 26, 2024
ded370d
docs: add cli commands reference
rebornplusplus Nov 26, 2024
68e06cf
docs: add explanation for jsonwall
rebornplusplus Dec 11, 2024
f0b1d7a
docs: add reference for chisel manifest
rebornplusplus Dec 11, 2024
b626654
docs: add reference for chisel.yaml
rebornplusplus Dec 11, 2024
35b178a
docs: add reference for slice definitions
rebornplusplus Dec 12, 2024
02c8660
docs: add explanation for mode of operation
rebornplusplus Dec 12, 2024
562030c
ci(docs): add automatic doc checks
rebornplusplus Dec 12, 2024
27228f6
docs: add SVG image for M.O. explanation
rebornplusplus Dec 12, 2024
0519505
Revert "ci(docs): add automatic doc checks"
rebornplusplus Dec 12, 2024
7b05283
docs: update the box in site root with proper descriptions
rebornplusplus Dec 12, 2024
07c1800
docs: update Chisel intro in site root
rebornplusplus Dec 12, 2024
5bfbb99
docs: small index refactoring
cjdcordeiro Dec 12, 2024
21854ce
docs: fix Discourse url
cjdcordeiro Dec 12, 2024
7b6d18f
docs: merge jsonwall with manifest ref
cjdcordeiro Dec 13, 2024
4599e86
docs: refactor chisel.yaml text
cjdcordeiro Dec 13, 2024
55506a6
docs: refactor slice definitions ref
cjdcordeiro Dec 13, 2024
bbf49ee
docs: refactor cmds reference
cjdcordeiro Dec 13, 2024
80202e2
docs: refactor tutorial
cjdcordeiro Dec 16, 2024
0cf91db
docs: replace MO diagram
cjdcordeiro Dec 16, 2024
737b470
docs: rename section
cjdcordeiro Dec 16, 2024
e44ab67
fix: relax wording
cjdcordeiro Dec 16, 2024
faf497f
docs: change yaml format in slice defs
cjdcordeiro Dec 16, 2024
ca635cd
docs: fix manifest sorting statement
cjdcordeiro Dec 16, 2024
e0cc681
docs: add deprecate note on default
cjdcordeiro Dec 16, 2024
c479144
docs: fix 'default' behavior with priorities
cjdcordeiro Dec 16, 2024
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
21 changes: 21 additions & 0 deletions docs/.custom_wordlist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
AGPL
Armored
Levenshtein
OpenPGP
Starlark
Subcommands
ZSTD
armor
armored
basename
esm
fips
http
https
jsonwall
optimize
subcommand
subcommands
symlink
ubuntu
yaml
30 changes: 30 additions & 0 deletions docs/.readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.11"
jobs:
pre_install:
- git fetch --unshallow || true

# Build documentation in the docs/ directory with Sphinx
sphinx:
builder: dirhtml
configuration: docs/conf.py
fail_on_warning: true

# If using Sphinx, optionally build your docs in additional formats such as PDF
formats:
- pdf

# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: docs/.sphinx/requirements.txt
16 changes: 16 additions & 0 deletions docs/.sphinx/.markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"default": false,
"MD003": { "style": "atx" },
"MD013": { "code_blocks": false, "tables": false, "stern": true, "line_length": 150},
"MD014": true,
"MD018": true,
"MD022": true,
"MD023": true,
"MD026": { "punctuation": ".,;。,;"},
"MD031": { "list_items": false},
"MD032": true,
"MD035": true,
"MD042": true,
"MD045": true,
"MD052": true
}
64 changes: 64 additions & 0 deletions docs/.sphinx/.wordlist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
ACME
ACME's
addons
AGPLv
API
APIs
balancer
Charmhub
CLI
DCO
Diátaxis
Dqlite
dropdown
EBS
EKS
enablement
favicon
Furo
Git
GitHub
Grafana
IAM
installable
JSON
Juju
Kubeflow
Kubernetes
Launchpad
linter
LTS
LXD
Makefile
Makefiles
Matrix
Mattermost
MicroCeph
MicroCloud
MicroOVN
MyST
namespace
namespaces
NodePort
Numbat
observability
OEM
OLM
Permalink
pre
Quickstart
ReadMe
reST
reStructuredText
roadmap
RTD
subdirectories
subfolders
subtree
TODO
Ubuntu
UI
UUID
VM
webhook
YAML
15 changes: 15 additions & 0 deletions docs/.sphinx/_static/css/pdf.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* Only relevant for specific PDF generation issues */

.rubric>.hclass2 {
display: block;
font-size: 2em;
border-radius: .5rem;
font-weight: 300;
line-height: 1.25;
margin-top: 1.75rem;
margin-right: -0.5rem;
margin-bottom: 0.5rem;
margin-left: -0.5rem;
padding-left: .5rem;
padding-right: .5rem;
}
Binary file added docs/.sphinx/_static/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.sphinx/_static/tag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions docs/.sphinx/_templates/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<header id="header" class="p-navigation">

<div class="p-navigation__nav" role="menubar">

<ul class="p-navigation__links" role="menu">

<li>
<a class="p-logo" href="https://{{ product_page }}" aria-current="page">
<img src="{{ pathto(product_tag,1) }}" alt="Logo" class="p-logo-image">
<div class="p-logo-text p-heading--4">{{ project }}
</div>
</a>
</li>

<li class="nav-ubuntu-com">
<a href="https://{{ product_page }}" class="p-navigation__link">{{ product_page }}</a>
</li>

<li>
<a href="#" class="p-navigation__link nav-more-links">More resources</a>
<ul class="more-links-dropdown">

{% if discourse %}
<li>
<a href="{{ discourse }}" class="p-navigation__sub-link p-dropdown__link">Discourse</a>
</li>
{% endif %}

{% if mattermost %}
<li>
<a href="{{ mattermost }}" class="p-navigation__sub-link p-dropdown__link">Mattermost</a>
</li>
{% endif %}

{% if matrix %}
<li>
<a href="{{ matrix }}" class="p-navigation__sub-link p-dropdown__link">Matrix</a>
</li>
{% endif %}

{% if github_url %}
<li>
<a href="{{ github_url }}" class="p-navigation__sub-link p-dropdown__link">GitHub</a>
</li>
{% endif %}

</ul>
</li>

</ul>
</div>
</header>
96 changes: 96 additions & 0 deletions docs/.sphinx/fonts/LICENCE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
-------------------------------
UBUNTU FONT LICENCE Version 1.0
-------------------------------

PREAMBLE
This licence allows the licensed fonts to be used, studied, modified and
redistributed freely. The fonts, including any derivative works, can be
bundled, embedded, and redistributed provided the terms of this licence
are met. The fonts and derivatives, however, cannot be released under
any other licence. The requirement for fonts to remain under this
licence does not require any document created using the fonts or their
derivatives to be published under this licence, as long as the primary
purpose of the document is not to be a vehicle for the distribution of
the fonts.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this licence and clearly marked as such. This may
include source files, build scripts and documentation.

"Original Version" refers to the collection of Font Software components
as received under this licence.

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to
a new environment.

"Copyright Holder(s)" refers to all individuals and companies who have a
copyright ownership of the Font Software.

"Substantially Changed" refers to Modified Versions which can be easily
identified as dissimilar to the Font Software by users of the Font
Software comparing the Original Version with the Modified Version.

To "Propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification and with or without charging
a redistribution fee), making available to the public, and in some
countries other activities as well.

PERMISSION & CONDITIONS
This licence does not grant any rights under trademark law and all such
rights are reserved.

Permission is hereby granted, free of charge, to any person obtaining a
copy of the Font Software, to propagate the Font Software, subject to
the below conditions:

1) Each copy of the Font Software must contain the above copyright
notice and this licence. These can be included either as stand-alone
text files, human-readable headers or in the appropriate machine-
readable metadata fields within text or binary files as long as those
fields can be easily viewed by the user.

2) The font name complies with the following:
(a) The Original Version must retain its name, unmodified.
(b) Modified Versions which are Substantially Changed must be renamed to
avoid use of the name of the Original Version or similar names entirely.
(c) Modified Versions which are not Substantially Changed must be
renamed to both (i) retain the name of the Original Version and (ii) add
additional naming elements to distinguish the Modified Version from the
Original Version. The name of such Modified Versions must be the name of
the Original Version, with "derivative X" where X represents the name of
the new work, appended to that name.

3) The name(s) of the Copyright Holder(s) and any contributor to the
Font Software shall not be used to promote, endorse or advertise any
Modified Version, except (i) as required by this licence, (ii) to
acknowledge the contribution(s) of the Copyright Holder(s) or (iii) with
their explicit written permission.

4) The Font Software, modified or unmodified, in part or in whole, must
be distributed entirely under this licence, and must not be distributed
under any other licence. The requirement for fonts to remain under this
licence does not affect any document created using the Font Software,
except any version of the Font Software extracted from a document
created using the Font Software may only be distributed under this
licence.

TERMINATION
This licence becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER
DEALINGS IN THE FONT SOFTWARE.
Binary file added docs/.sphinx/fonts/Ubuntu-B.ttf
Binary file not shown.
Binary file added docs/.sphinx/fonts/Ubuntu-R.ttf
Binary file not shown.
Binary file added docs/.sphinx/fonts/Ubuntu-RI.ttf
Binary file not shown.
Binary file added docs/.sphinx/fonts/UbuntuMono-B.ttf
Binary file not shown.
Binary file added docs/.sphinx/fonts/UbuntuMono-R.ttf
Binary file not shown.
Binary file added docs/.sphinx/fonts/UbuntuMono-RI.ttf
Binary file not shown.
53 changes: 53 additions & 0 deletions docs/.sphinx/get_vale_conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#! /usr/bin/env python

import requests
import os

DIR = os.getcwd()


def main():
if os.path.exists(f"{DIR}/.sphinx/styles/Canonical"):
print("Vale directory exists")
else:
os.makedirs(f"{DIR}/.sphinx/styles/Canonical")

url = (
"https://api.github.com/repos/canonical/praecepta/"
+ "contents/styles/Canonical"
)
r = requests.get(url)
for item in r.json():
download = requests.get(item["download_url"])
file = open(".sphinx/styles/Canonical/" + item["name"], "w")
file.write(download.text)
file.close()

if os.path.exists(f"{DIR}/.sphinx/styles/config/vocabularies/Canonical"):
print("Vocab directory exists")
else:
os.makedirs(f"{DIR}/.sphinx/styles/config/vocabularies/Canonical")

url = (
"https://api.github.com/repos/canonical/praecepta/"
+ "contents/styles/config/vocabularies/Canonical"
)
r = requests.get(url)
for item in r.json():
download = requests.get(item["download_url"])
file = open(
".sphinx/styles/config/vocabularies/Canonical/" + item["name"],
"w"
)
file.write(download.text)
file.close()
config = requests.get(
"https://raw.githubusercontent.com/canonical/praecepta/main/vale.ini"
)
file = open(".sphinx/vale.ini", "w")
file.write(config.text)
file.close()


if __name__ == "__main__":
main()
Binary file added docs/.sphinx/images/Canonical-logo-4x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.sphinx/images/front-page-light.pdf
Binary file not shown.
Binary file added docs/.sphinx/images/normal-page-footer.pdf
Binary file not shown.
Loading
Loading