Skip to content

Commit e7d5720

Browse files
authored
Merge pull request #180 from AryanNanda17/docs_contributors_guide
Contributors guided added to docs
2 parents 1dc6706 + 6582805 commit e7d5720

File tree

4 files changed

+45
-1
lines changed

4 files changed

+45
-1
lines changed

docs/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,7 @@ api:
3030
html:
3131
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
3232

33+
livehtml:
34+
sphinx-autobuild $(SOURCEDIR) $(BUILDDIR)/html
35+
3336
all: clean api html

docs/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
import sphinx_rtd_theme
3030
except ModuleNotFoundError:
3131
subprocess.check_call([sys.executable, "-m", "pip", "install", "sphinx_rtd_theme"])
32+
try:
33+
import sphinx_autobuild
34+
except ModuleNotFoundError:
35+
subprocess.check_call([sys.executable, "-m", "pip", "install", "sphinx-autobuild"])
36+
3237
_base_path = os.path.abspath('..')
3338
BASE_URL = 'https://github.com/kubeedge/ianvs/'
3439

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# How to contribute documentation
2+
3+
**First off, thanks for taking the time to think about contributing!**
4+
5+
The KubeEdge community abides by the CNCF [code of conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md). Here is an excerpt:
6+
7+
_As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities._
8+
9+
---
10+
For Contributing to the ianvs documentation hosted at `https://ianvs.readthedocs.io/en/latest`, follow the following instructions:-
11+
12+
### Forking the project
13+
14+
You can [fork](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo) this project repository to create and submit changes to the documentation.
15+
16+
Then, open the terminal of your choice and run the following command to clone the forked project to your computer. The project is saved to the location where the terminal is opened from. If you want to change the location, use `cd` command to change the directory.
17+
18+
```shell
19+
git clone <your forked repository link>
20+
```
21+
Wait until all of the project files are downloaded. A folder with the name `ianvs` will be created. You need to enter into the directory with the `cd` command.
22+
23+
**Note: In order to build ianvs documentation on your local machine you need a python version 3.6**.
24+
25+
- Now, execute these commands in your terminal
26+
```
27+
cd docs
28+
python3 conf.py # downloads the requirements
29+
```
30+
Now, build and serve it live using sphinx-autobuild,
31+
32+
```
33+
make livehtml
34+
```
35+
36+
Now, you can open http://127.0.0.1:8000 on any browser to see the rendered HTML with live updates. Clear cookies and site data in your browser window to view up to date site.

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Start your journey on Ianvs with the following links:
9090
guides/how-to-contribute-test-environments
9191
guides/how-to-contribute-algorithms
9292
guides/how-to-contribute-leaderboards-or-test-reports
93-
93+
guides/how-to-contribute-documentation
9494

9595
.. toctree::
9696
:maxdepth: 1

0 commit comments

Comments
 (0)