Skip to content

Commit b988a2a

Browse files
committedSep 1, 2022
code block fix
Signed-off-by: Ryan Cook <[email protected]>
1 parent 0ffcbc4 commit b988a2a

7 files changed

+47
-37
lines changed
 

‎.readthedocs.yaml

+13-20
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
1-
# .readthedocs.yaml
1+
---
2+
# .readthedocs.yml
23
# Read the Docs configuration file
34
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4-
5-
# Required
65
version: 2
7-
8-
# Set the version of Python and other tools you might need
9-
build:
10-
os: ubuntu-20.04
11-
tools:
12-
golang: "1.18"
13-
146
# Build documentation in the docs/ directory with Sphinx
157
sphinx:
16-
configuration: docs/conf.py
17-
18-
# If using Sphinx, optionally build your docs in additional formats such as PDF
19-
# formats:
20-
# - pdf
21-
22-
# Optionally declare the Python requirements required to build your docs
23-
# python:
24-
# install:
25-
# - requirements: docs/requirements.txt
8+
builder: html
9+
configuration: docs/source/conf.py
10+
# Optionally build your docs in additional formats such as PDF
11+
formats:
12+
- pdf
13+
# Optionally set the version of Python and requirements required to build your
14+
# docs
15+
python:
16+
# version: 3.7
17+
install:
18+
- requirements: docs/source/requirements.txt

‎docs/source/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
'sphinx.ext.doctest',
1717
'sphinx.ext.autodoc',
1818
'sphinx.ext.autosummary',
19+
'sphinx.ext.autosectionlabel',
1920
'sphinx.ext.intersphinx',
2021
# 'autoapi.extension',
2122
]

‎docs/source/getting_started.rst

+9-4
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@ This document explains methods that can be used to install the operator onto an
66
No matter which method you choose, the same operator will be installed.
77

88
**With helm**
9-
::
10-
helm install ipfs-operator ./helm/ipfs-operator
9+
10+
11+
.. code-block:: bash
12+
13+
helm install ipfs-operator ./helm/ipfs-operator
1114
1215
**manually**
13-
::
14-
make install
16+
17+
.. code-block:: bash
18+
19+
make install
1520
1621
1722

‎docs/source/hacking.rst

+9-7
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@ Hacking
33

44
Have you have found a bug in the operator or do you have an additional feature? That's great! Here are some tips.
55

6-
7-
Running your own images.
6+
Running your own images
7+
=======================
88

99
If you have edited the code, you would like to install it in your own cluster, you will first need an account on an image host like dockerhub. Once you have this, you can build, push, and install the image using the **IMG** environment variable
10-
::
11-
export IMG=your-image-repo/ipfs-operator:version
12-
make docker-build
13-
make docker-push
14-
make install
1510

11+
.. code-block:: bash
12+
13+
export IMG=your-image-repo/ipfs-operator:version
14+
make docker-build
15+
make docker-push
16+
make install
1617
1718
Creating a pull request
19+
=======================
1820

1921
Pull requests are welcome and encouraged. Please make pull reqeusts against https://github.com/redhat-et/ipfs-operator.

‎docs/source/index.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
IPFS Operator
22
===================================
33

4-
**IPFS Operator** is a `Kubernetes Operator <https://kubernetes.io/docs/concepts/extend-kubernetes/operator/>`
5-
designed to assist with running `IPFS Cluster <https://cluster.ipfs.io>`
4+
**IPFS Operator** is a `Kubernetes Operator <https://kubernetes.io/docs/concepts/extend-kubernetes/operator/>`_
5+
designed to assist with running `IPFS Cluster <https://cluster.ipfs.io>`_
66

77
IPFS cluster is used as the storage backend for many important and interesting projects. Some of the community projects
8-
hosted using IPFS cluster are listed `here <https://collab.ipfscluster.io/>`. The largest known clusters are host to tens of millions of pins and host nearly 1PB of objects.
8+
hosted using IPFS cluster are listed `here <https://collab.ipfscluster.io/>`_. The largest known clusters are host to tens of millions of pins and host nearly 1PB of objects.
99

10-
The IPFS Operator brings this technology to kubernetes. This operator enables kubernetes users to create clusters consisting of hundreds of peers quickly and easily. See _getting_started to begin.
10+
The IPFS Operator brings this technology to kubernetes. This operator enables kubernetes users to create clusters consisting of hundreds of peers quickly and easily. See :ref:`Getting Started` to begin.
1111

1212
.. note::
1313

‎docs/source/requirements.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
mypy
2+
plantweb
3+
pylint
4+
rstcheck
5+
sphinx_rtd_theme
6+
sphinx-tabs
7+
sphinx-toolbox

‎docs/source/your_first_cluster.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ Create a file with the following information
2222
Adjust the storage requirements to meet your needs.
2323

2424
Once you have made the necessary adjustments, apply it to your cluster with kubectl
25-
.. code-block::bash
25+
26+
.. code-block:: bash
2627
2728
kubectl create namespace my_cluster
2829
kubectl -n my_cluster apply -f ipfs.yaml
2930
3031
Verify that the cluster has started by viewing the status of the cluster.
31-
.. code-block::bash
32+
33+
.. code-block:: bash
3234
3335
kubectl -n my_namespace status ipfs-sample-1

0 commit comments

Comments
 (0)
Please sign in to comment.