Skip to content

Commit 4175d3c

Browse files
authored
Merge pull request #70 from cooktheryan/main
Fix of read the docs build issues
2 parents d76396b + ff71019 commit 4175d3c

16 files changed

+103
-88
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
*.so
77
*.dylib
88
bin
9+
!docs/build/
10+
docs/build/*
911
testbin/*
1012

1113
# Test binary, build with `go test -c`
@@ -31,4 +33,4 @@ test-e2e/kubeconfig
3133
vendor/*
3234

3335
# use this directory for files during development that shouldn't be pushed
34-
temp/*
36+
temp/*

.readthedocs.yaml

Lines changed: 13 additions & 20 deletions
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
-325 Bytes
Binary file not shown.
-23 Bytes
Binary file not shown.
-23 Bytes
Binary file not shown.

docs/build/doctrees/index.doctree

-23 Bytes
Binary file not shown.
-3.8 KB
Binary file not shown.

docs/build/html/_sources/your_first_cluster.rst.txt

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,29 @@ Create a cluster, we need to create a cluster using the ipfs operator CRD.
55

66
Create a file with the following information
77

8-
::
9-
apiVersion: cluster.ipfs.io/v1alpha1
10-
kind: Ipfs
11-
metadata:
12-
name: ipfs-sample-1
13-
spec:
14-
url: apps.jephilli-4-11-04-28-0655.devcluster.openshift.com
15-
ipfsStorage: 2Gi
16-
clusterStorage: 2Gi
17-
replicas: 5
18-
public: true
8+
.. code-block:: yaml
9+
10+
apiVersion: cluster.ipfs.io/v1alpha1
11+
kind: Ipfs
12+
metadata:
13+
name: ipfs-sample-1
14+
spec:
15+
url: apps.example.com
16+
ipfsStorage: 2Gi
17+
clusterStorage: 2Gi
18+
replicas: 5
19+
public: true
1920
2021
2122
Adjust the storage requirements to meet your needs.
2223

2324
Once you have made the necessary adjustments, apply it to your cluster with kubectl
24-
::
25+
.. code-block::bash
26+
2527
kubectl create namespace my_cluster
2628
kubectl -n my_cluster apply -f ipfs.yaml
2729
2830
Verify that the cluster has started by viewing the status of the cluster.
29-
::
31+
.. code-block::bash
32+
3033
kubectl -n my_namespace status ipfs-sample-1

docs/build/html/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/build/html/your_first_cluster.html

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -75,33 +75,30 @@
7575
<h1>Your First Cluster<a class="headerlink" href="#your-first-cluster" title="Permalink to this heading"></a></h1>
7676
<p>Create a cluster, we need to create a cluster using the ipfs operator CRD.</p>
7777
<p>Create a file with the following information</p>
78-
<dl>
79-
<dt>::</dt><dd><p>apiVersion: cluster.ipfs.io/v1alpha1
80-
kind: Ipfs
81-
metadata:</p>
82-
<blockquote>
83-
<div><p>name: ipfs-sample-1</p>
84-
</div></blockquote>
85-
<dl class="simple">
86-
<dt>spec:</dt><dd><p>url: apps.jephilli-4-11-04-28-0655.devcluster.openshift.com
87-
ipfsStorage: 2Gi
88-
clusterStorage: 2Gi
89-
replicas: 5
90-
public: true</p>
91-
</dd>
92-
</dl>
93-
</dd>
94-
</dl>
95-
<p>Adjust the storage requirements to meet your needs.</p>
96-
<p>Once you have made the necessary adjustments, apply it to your cluster with kubectl</p>
97-
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">kubectl</span> <span class="n">create</span> <span class="n">namespace</span> <span class="n">my_cluster</span>
98-
<span class="n">kubectl</span> <span class="o">-</span><span class="n">n</span> <span class="n">my_cluster</span> <span class="n">apply</span> <span class="o">-</span><span class="n">f</span> <span class="n">ipfs</span><span class="o">.</span><span class="n">yaml</span>
99-
</pre></div>
100-
</div>
101-
<p>Verify that the cluster has started by viewing the status of the cluster.</p>
102-
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">kubectl</span> <span class="o">-</span><span class="n">n</span> <span class="n">my_namespace</span> <span class="n">status</span> <span class="n">ipfs</span><span class="o">-</span><span class="n">sample</span><span class="o">-</span><span class="mi">1</span>
78+
<div class="highlight-yaml notranslate"><div class="highlight"><pre><span></span><span class="nt">apiVersion</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">cluster.ipfs.io/v1alpha1</span><span class="w"></span>
79+
<span class="nt">kind</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">Ipfs</span><span class="w"></span>
80+
<span class="nt">metadata</span><span class="p">:</span><span class="w"></span>
81+
<span class="w"> </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">ipfs-sample-1</span><span class="w"></span>
82+
<span class="nt">spec</span><span class="p">:</span><span class="w"></span>
83+
<span class="w"> </span><span class="nt">url</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">apps.example.com</span><span class="w"></span>
84+
<span class="w"> </span><span class="nt">ipfsStorage</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">2Gi</span><span class="w"></span>
85+
<span class="w"> </span><span class="nt">clusterStorage</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">2Gi</span><span class="w"></span>
86+
<span class="w"> </span><span class="nt">replicas</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">5</span><span class="w"></span>
87+
<span class="w"> </span><span class="nt">public</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">true</span><span class="w"></span>
10388
</pre></div>
10489
</div>
90+
<p>Adjust the storage requirements to meet your needs.</p>
91+
<p>Once you have made the necessary adjustments, apply it to your cluster with kubectl
92+
.. code-block::bash</p>
93+
<blockquote>
94+
<div><p>kubectl create namespace my_cluster
95+
kubectl -n my_cluster apply -f ipfs.yaml</p>
96+
</div></blockquote>
97+
<p>Verify that the cluster has started by viewing the status of the cluster.
98+
.. code-block::bash</p>
99+
<blockquote>
100+
<div><p>kubectl -n my_namespace status ipfs-sample-1</p>
101+
</div></blockquote>
105102
</section>
106103

107104

0 commit comments

Comments
 (0)