Skip to content

Commit 070b3a7

Browse files
authored
Revert "Add Contributor Section (#92)" (#342)
This reverts commit 829b24a.
1 parent 829b24a commit 070b3a7

File tree

96 files changed

+64
-3497
lines changed

Some content is hidden

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

96 files changed

+64
-3497
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
# Created by https://www.toptal.com/developers/gitignore/api/python,jupyternotebooks
33
# Edit at https://www.toptal.com/developers/gitignore?templates=python,jupyternotebooks
44

5-
### Mac OS ###
6-
*.DS_Store
7-
85
### JupyterNotebooks ###
96
# gitignore template for Jupyter Notebooks
107
# website: http://jupyter.org/

.vscode/extensions.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"lextudio.restructuredtext",
44
"lextudio.restructuredtext-pack",
55
"trond-snekvik.simple-rst",
6-
"ms-python.python",
7-
"swyddfa.esbonio"
6+
"ms-python.python"
87
]
98
}

README.md

Lines changed: 55 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,63 @@
11
*FIRST* Tech Challenge Documentation Project
22
==========================================
3-
43
![Build](https://readthedocs.com/projects/first-tech-challenge-ftcdocs/badge/?version=latest) ![Link-Check](https://github.com/FIRST-Tech-Challenge/ftcdocs/actions/workflows/link-check.yaml/badge.svg)
54

65
This GitHub project is a work-in-progress for FTC documentation.
76

8-
The website is available at https://ftc-docs.firstinspires.org
9-
107
# Contributing
118

12-
We are always looking for help improving FTC Docs. For more infomration on contributing
13-
consult the [contributing section](https://ftc-docs.firstinspires.org/contrib/index.html) in FTC Docs.
9+
## Prerequisites
10+
11+
- GitHub Account
12+
- Git Installed on Local Machine (for local method)
13+
14+
### Windows software dependencies (typically preinstalled on a Linux distro)
15+
16+
- GitForWindows: https://gitforwindows.org/
17+
- Chocolatey for installing make: https://chocolatey.org/install#individual
18+
- make: https://community.chocolatey.org/packages/make
19+
20+
## Local Method
21+
22+
1. Create fork of FtcDocs Project as shown [here](https://docs.github.com/en/get-started/quickstart/fork-a-repo) keeping the name of the repo the same
23+
2. Clone fork of project replacing `<NAME>` with your username
24+
25+
`git clone https://github.com/<NAME>/ftcdocs.git`
26+
3. Install Python from [here](https://www.python.org/downloads/)
27+
4. Install Pip following [these](https://pip.pypa.io/en/stable/installation/) instructions
28+
5. Change directory to root project and install dependencies
29+
- `cd ftcdocs`
30+
- `pip install -r docs/requirements.txt`
31+
6. Make desired changes to project. Remember to follow style guide shown [here](https://docs.wpilib.org/en/stable/docs/contributing/frc-docs/style-guide.html)
32+
7. Install dependencies for PDF
33+
- Ubuntu/Debian: `xargs -a dependencies sudo apt install -y`
34+
- Windows: Install MiKTeX from [here](https://miktex.org/download)
35+
8. Build project by executing following commands in `docs\` folder of project
36+
- HTML: `make html`
37+
- Autobuild HTML: `make autobuild`
38+
- PDF: `make latexpdf`
39+
- Link: `make linkcheck`
40+
9. View Result (html)
41+
- Open `docs\build\html\index.html` in a browser of your choice
42+
- To create local http server execute `python3 -m http.server 7350` in `docs\build\html\index.html` and view result [here](http://localhost:7350). If you are using the Autobuild option this server will be automatically created and updated with most changes to rst files. Some changes will not be transferred like images and will require a `make clean`.
43+
10. Commit changes and push after desired result has been achieved
44+
- `git commit -a -m <MESSAGE>` replace <MESSAGE> with your commit message
45+
- `git push`
46+
11. [Create](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request) a Pull Request to upstream repository. Make sure to be concise in your PR title and description.
47+
48+
## Cloud Method
49+
50+
51+
1. Create fork of FtcDocs Project as shown [here](https://docs.github.com/en/get-started/quickstart/fork-a-repo)
52+
2. Ideally you should follow a feature based branch system. This means that you should create a new branch every time you are thinking of adding a new feature. This will insure that the main branch stays identical to upstream.
53+
1. Click the drop down menu that says the branch you are currently working on (default is main) towards the top but slightly to the left
54+
2. Type in what you wish to name your branch. It should be short and concise while also being able to convey to others what feature this branch has
55+
3. Next click `Create branch: [name of branch] from ‘main’`
56+
3. Although you can view changes made in the Github preview this can be incorrect and is often incomplete. To give an accurate view of what your changes look like you will want to make your own Read The Docs site to preview your changes. To do this follow the instructions given [here](https://docs.readthedocs.io/en/stable/tutorial/index.html) forgoing the "Preparing your project on GitHub" and not going beyond "Checking the first build". Name your site `<USERNAME>-ftcdocs`
57+
4. To change the branch that RTD builds on do the following
58+
1. Go to `https://readthedocs.org/dashboard/<USERNAME>-ftcdocs/advanced/` after replacing `<USERNAME>` with your username
59+
2. Click your user in the top right corner
60+
3. Change Default branch to the branch you want to build off of
61+
![demo](https://media.discordapp.net/attachments/836704905364373547/992042745952751626/unknown.png)
62+
5. Make desired changes to forked project via Github Web Editor. This is as simple as clicking edit icon after viewing any given file. Remember to follow style guide shown [here](https://docs.wpilib.org/en/stable/docs/contributing/frc-docs/style-guide.html)
63+
6. View Changes on created RTD site by visiting `https://<USERNAME>-ftcdocs.readthedocs.io/en/latest/` after replacing `<USERNAME>` with your username

dependencies

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
texlive-xetex
22
latexmk
3+
jq
4+
unzip
35
fonts-roboto

docs/requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ git+https://github.com/FIRST-Tech-Challenge/ftcdocs-helper@main#subdirectory=coo
99
sphinx-sitemap==2.3.0
1010
python-git-info==0.8.3
1111
sphinxcontrib-mermaid==0.9.2
12-
sphinx-hoverxref==1.3.0
1312
sphinxext-rediraffe==0.2.7
14-
git+https://github.com/FIRST-Tech-Challenge/ftcdocs-helper@main#subdirectory=linkcheckdiff
13+
git+https://github.com/FIRST-Tech-Challenge/ftcdocs-helper@main#subdirectory=linkcheckdiff

docs/source/common/mission.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/source/conf.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
author = 'FIRST Tech Challenge'
1212
license = 'BSD 3-Clause'
1313

14-
release = '0.3'
15-
version = '0.3.0'
14+
release = '0.2'
15+
version = '0.2.0'
1616
# -- General configuration
1717

1818
extensions = [
@@ -29,15 +29,10 @@
2929
'sphinxcontrib.googleanalytics',
3030
'sphinxcontrib.cookiebanner',
3131
'sphinxcontrib.mermaid',
32-
'hoverxref.extension',
3332
"sphinxext.rediraffe",
3433
"ftcdocs_linkcheckdiff",
3534
]
3635

37-
# Options for HoverXRef extension
38-
39-
hoverxref_roles = ['term']
40-
4136
autosectionlabel_prefix_document = True
4237
default_dark_mode = False
4338
todo_include_todos = False
@@ -289,7 +284,6 @@
289284
# GitHub links with Javascript Anchors cannot be detected by linkcheck
290285
# Solidworks returns 403 errors on too many web pages. Thanks, buddy.
291286
# As of 7/13/23, april.eecs.umich.edu has an expired certificate
292-
293287
linkcheck_ignore = [
294288
r'https://my.firstinspires.org/Dashboard/',
295289
"https://ftc-ml.firstinspires.org",
@@ -316,7 +310,7 @@
316310
if(os.environ.get("BOOKLETS_BUILD") == "true"):
317311
print('Building booklets')
318312
latex_documents = [
319-
('contrib/index', "contrib.tex", "Contributing to FTC Docs", author, "manual"), # Contributing
313+
('ftc_ml/index', "ftc_ml.tex", "FTC Machine Learning", author, "manual"), # FTC ML
320314
('programming_resources/index', "prgrm_res.tex", "FTC Programming Resources", author, "manual"), # Programming Resources
321315
('programming_resources/android_studio_java/Android-Studio-Tutorial', 'android_studios.tex', 'Android Studio Guide', author, "manual"), # Android Studio
322316
('programming_resources/onbot_java/OnBot-Java-Tutorial', "onbot_java.tex", 'OnBot Java Guide', author, "manual"), # OnBot Java
@@ -329,6 +323,7 @@
329323
('manufacturing/3d_printing/index', '3d_printing.tex', '3D Printing Guide', author, "manual"), # 3D Printing
330324
('hardware_and_software_configuration/configuring/managing_esd/managing-esd', 'esd.tex', 'Managing Electrostatic Discharge', author, "manual"), # ESD
331325
]
326+
332327

333328
def setup(app):
334329
app.add_css_file("css/ftc-rtd.css")

docs/source/contrib/guidelines/guidelines.rst

Lines changed: 0 additions & 51 deletions
This file was deleted.

docs/source/contrib/index.rst

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)