Skip to content

Commit 829b24a

Browse files
uvidyadharanmiriamsracharraggitexasdiaz
authored
Add Contributor Section (#92)
* Adding Contrib Section --------- Co-authored-by: Miriam Sinton-Remes <[email protected]> Co-authored-by: Mike <[email protected]> Co-authored-by: Danny Diaz <[email protected]>
1 parent 8947761 commit 829b24a

File tree

96 files changed

+3497
-64
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

+3497
-64
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
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+
58
### JupyterNotebooks ###
69
# gitignore template for Jupyter Notebooks
710
# website: http://jupyter.org/

.vscode/extensions.json

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

README.md

Lines changed: 5 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,13 @@
11
*FIRST* Tech Challenge Documentation Project
22
==========================================
3+
34
![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)
45

56
This GitHub project is a work-in-progress for FTC documentation.
67

7-
# Contributing
8-
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
8+
The website is available at https://ftc-docs.firstinspires.org
499

10+
# Contributing
5011

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
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.

dependencies

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

docs/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ 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
1213
sphinxext-rediraffe==0.2.7
13-
git+https://github.com/FIRST-Tech-Challenge/ftcdocs-helper@main#subdirectory=linkcheckdiff
14+
git+https://github.com/FIRST-Tech-Challenge/ftcdocs-helper@main#subdirectory=linkcheckdiff

docs/source/common/mission.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FTC Docs aims to provide a comprehensive documentation base for *FIRST* Tech Challenge teams and mentors.
2+
It is a community-driven project, hosted and moderated by FIRST Tech Challenge staff,
3+
and we welcome contributions from all teams and mentors. It is our hope that this project will help to
4+
make the community more connected and informed while reducing the fragmentation of documentation present
5+
in *FIRST* Tech Challenge. The information provided is not meant to endorse any specific method or approach,
6+
but rather to provide an information base for students and mentors to make informed decisions.

docs/source/conf.py

Lines changed: 9 additions & 4 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.2'
15-
version = '0.2.0'
14+
release = '0.3'
15+
version = '0.3.0'
1616
# -- General configuration
1717

1818
extensions = [
@@ -29,10 +29,15 @@
2929
'sphinxcontrib.googleanalytics',
3030
'sphinxcontrib.cookiebanner',
3131
'sphinxcontrib.mermaid',
32+
'hoverxref.extension',
3233
"sphinxext.rediraffe",
3334
"ftcdocs_linkcheckdiff",
3435
]
3536

37+
# Options for HoverXRef extension
38+
39+
hoverxref_roles = ['term']
40+
3641
autosectionlabel_prefix_document = True
3742
default_dark_mode = False
3843
todo_include_todos = False
@@ -284,6 +289,7 @@
284289
# GitHub links with Javascript Anchors cannot be detected by linkcheck
285290
# Solidworks returns 403 errors on too many web pages. Thanks, buddy.
286291
# As of 7/13/23, april.eecs.umich.edu has an expired certificate
292+
287293
linkcheck_ignore = [
288294
r'https://my.firstinspires.org/Dashboard/',
289295
"https://ftc-ml.firstinspires.org",
@@ -310,7 +316,7 @@
310316
if(os.environ.get("BOOKLETS_BUILD") == "true"):
311317
print('Building booklets')
312318
latex_documents = [
313-
('ftc_ml/index', "ftc_ml.tex", "FTC Machine Learning", author, "manual"), # FTC ML
319+
('contrib/index', "contrib.tex", "Contributing to FTC Docs", author, "manual"), # Contributing
314320
('programming_resources/index', "prgrm_res.tex", "FTC Programming Resources", author, "manual"), # Programming Resources
315321
('programming_resources/android_studio_java/Android-Studio-Tutorial', 'android_studios.tex', 'Android Studio Guide', author, "manual"), # Android Studio
316322
('programming_resources/onbot_java/OnBot-Java-Tutorial', "onbot_java.tex", 'OnBot Java Guide', author, "manual"), # OnBot Java
@@ -323,7 +329,6 @@
323329
('manufacturing/3d_printing/index', '3d_printing.tex', '3D Printing Guide', author, "manual"), # 3D Printing
324330
('hardware_and_software_configuration/configuring/managing_esd/managing-esd', 'esd.tex', 'Managing Electrostatic Discharge', author, "manual"), # ESD
325331
]
326-
327332

328333
def setup(app):
329334
app.add_css_file("css/ftc-rtd.css")
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
Contribution Guidelines
2+
=======================
3+
4+
Contributors are the lifeblood of the project. We welcome contributions but remind everyone to
5+
be a :doc:`Gracious Professional </gracious_professionalism/gp>`.
6+
7+
Creating a PR
8+
--------------
9+
10+
PRs should be made to the `FTC Docs <https://github.com/FIRST-Tech-Challenge/ftcdocs>`_ repo on GitHub. Your
11+
title should aim to describe the purpose of your PR in a *concise* manner. For more information on creating a
12+
PR, see
13+
`this <https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request>`_
14+
15+
16+
Creating an Issue
17+
------------------
18+
19+
There are two types of issues: bugs and feature requests. A bug report is an issue that describes a problem with the
20+
documentation. A feature request is an issue that describes a new feature that should be added to the documentation.
21+
Before creating either make sure to check for duplicates. If you find a duplicate, comment on the issue and add your
22+
input where possible. If possible we would love to see a PR that fixes the issue. If you are unsure how to fix the issue
23+
that is perfectly alright.
24+
25+
Bug Reports
26+
-------------
27+
28+
* A description of the bug
29+
* Expected behavior
30+
* Steps to reproduce the bug (If applicable)
31+
* Screenshots (If applicable)
32+
33+
Feature Requests
34+
------------------
35+
36+
* A description of the feature
37+
* Why you think this feature should be added
38+
* Screenshots (If applicable)
39+
40+
Colophon
41+
--------
42+
43+
FTC Docs is built with `Sphinx <https://www.sphinx-doc.org/>`__ using a `theme <https://github.com/readthedocs/sphinx_rtd_theme>`__ provided by `Read the Docs <https://readthedocs.org/>`__.
44+
45+
The `Dark theme <https://github.com/FIRST-Tech-Challenge/ftcdocs-helper/tree/main/sphinx_rtd_dark_mode_v2>`__ is provided by the FTC Docs development team.
46+
47+
.. We might wish to state what version of Sphinx we use and other version info.
48+
This is also where we could declare what versions of HTML, XML, CSS we target. Perhaps what browsers we target.
49+
(X)HTML, CSS, or usability standards compliance information and links to website validation tests. This used to be a thing, not so much anymore.
50+
Perhaps that we are WCAG compliant someday.
51+

docs/source/contrib/index.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Contributing to FTC Docs
2+
=========================
3+
4+
.. toctree::
5+
:hidden:
6+
7+
guidelines/guidelines
8+
style_guide/style-guide
9+
workflow/workflow
10+
tutorials/index
11+
12+
13+
Mission Statement
14+
-----------------
15+
16+
.. include:: /common/mission.rst
17+
18+
- :doc:`Contribution Guidelines <guidelines/guidelines>`
19+
- :doc:`Style Guide <style_guide/style-guide>`
20+
- :doc:`FTC Docs Workflow <workflow/workflow>`
21+
- :doc:`Tutorials <tutorials/index>`
22+
23+
24+
====
25+
26+
FTC Docs is maintained by:
27+
28+
- Daniel Alfredo Diaz, Jr.
29+
- Elizabeth Gilibert
30+
- Chris Johannesen, Westside Robotics
31+
- Uday Vidyadharan, MFW Team 7350 Watt's NXT?
32+
33+
A special thanks to everyone who has contributed to this project.

0 commit comments

Comments
 (0)