generated from readthedocs/tutorial-template
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Contributor Section #92
Draft
uvidyadharan
wants to merge
45
commits into
FIRST-Tech-Challenge:main
Choose a base branch
from
uvidyadharan:readme
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 33 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
06704f9
Adding Contrib Section
uvidyadharan 9826c5a
Fix redirect
uvidyadharan 2941c13
Workaround gitignore
uvidyadharan 0e02d6f
Fix Linkcheck
uvidyadharan 32b1905
Add content
uvidyadharan ff4aa1d
Add more
uvidyadharan 889fc7d
Merge branch 'FIRST-Tech-Challenge:main' into readme
uvidyadharan 3ffaf1f
Merge branch 'main' into readme
uvidyadharan 7ae7d2c
Merge branch 'main' into readme
uvidyadharan 7c43972
Merge branch 'FIRST-Tech-Challenge:main' into readme
uvidyadharan 3e15ec6
Merge branch 'main' into readme
uvidyadharan edc75bb
Add QOL Build options
uvidyadharan f1f9ec8
Update Dev Container
uvidyadharan 399910e
Update
uvidyadharan ecbbe60
Add Tutorials
uvidyadharan 76726f5
Add content tutorials
uvidyadharan 0cec7f7
Finish Tutorial for Setup
uvidyadharan 07b6d44
Merge branch 'main' into readme
uvidyadharan d720c8e
Finish Make Fork
uvidyadharan 06a95c0
Merge branch 'readme' of github.com:uvidyadharan/ftcdocs into readme
uvidyadharan a864ef5
Remove Multi User Branch
uvidyadharan 8d1dcb3
Add Overview
uvidyadharan 2dcfc6d
Merge branch 'main' into readme
uvidyadharan e0aa6ec
Add Warning
uvidyadharan 50d1196
Merge branch 'readme' of github.com:uvidyadharan/ftcdocs into readme
uvidyadharan 49dd956
Update
uvidyadharan 9eb8150
test
uvidyadharan de9ace6
test
uvidyadharan 323ef7c
How to Make PR and more
uvidyadharan 4bb5edd
Merge branch 'readme' of github.com:uvidyadharan/ftcdocs into readme
uvidyadharan a1ded5f
Overview Update
uvidyadharan 1ac6e12
How to PR
uvidyadharan 3404c7f
Spell Check Fixes
uvidyadharan 2f988e2
Fix More Typos
uvidyadharan 8ef3961
Merge branch 'main' into readme
uvidyadharan 6917d85
Add Info on Tasks
uvidyadharan aec0bc1
Update Tasks
uvidyadharan 519d467
Merge branch 'main' into readme
uvidyadharan 4100619
Merge branch 'main' into readme
miriamsr 37526b8
Started updating screenshots
miriamsr bf36530
Some more changes
uvidyadharan 5363487
Merge branch 'readme' of github.com:uvidyadharan/ftcdocs into readme
uvidyadharan 7241b89
Merge branch 'main' into readme
uvidyadharan c4668b8
update Basic rST Content to fix section numbering (convert example to…
acharraggi a91c985
add reference guide page, update index, update style guide. Still rou…
acharraggi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,13 @@ | ||
*FIRST* Tech Challenge Documentation Project | ||
========================================== | ||
|
||
![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) | ||
|
||
This GitHub project is a work-in-progress for FTC documentation. | ||
|
||
# Contributing | ||
|
||
## Prerequisites | ||
|
||
- GitHub Account | ||
- Git Installed on Local Machine (for local method) | ||
|
||
## Local Method | ||
|
||
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 | ||
2. Clone fork of project replacing `<NAME>` with your username | ||
|
||
`git clone https://github.com/<NAME>/ftcdocs.git` | ||
3. Install Python from [here](https://www.python.org/downloads/) | ||
4. Install Pip following [these](https://pip.pypa.io/en/stable/installation/) instructions | ||
5. Change directory to root project and install dependencies | ||
- `cd ftcdocs` | ||
- `pip install -r docs/requirements.txt` | ||
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) | ||
7. Install dependencies for PDF | ||
- Ubuntu/Debian: `xargs -a dependencies sudo apt install -y` | ||
- Windows: Install MiKTeX from [here](https://miktex.org/download) | ||
8. Build project by executing following commands in `docs\` folder of project | ||
- HTML: `make html` | ||
- Autobuild HTML: `make autobuild` | ||
- PDF: `make latexpdf` | ||
- Link: `make linkcheck` | ||
9. View Result (html) | ||
- Open `docs\build\html\index.html` in a browser of your choice | ||
- 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`. | ||
10. Commit changes and push after desired result has been achieved | ||
- `git commit -a -m <MESSAGE>` replace <MESSAGE> with your commit message | ||
- `git push` | ||
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. | ||
|
||
## Cloud Method | ||
The website is available at https://ftc-docs.firstinspires.org | ||
|
||
# Contributing | ||
|
||
1. Create fork of FtcDocs Project as shown [here](https://docs.github.com/en/get-started/quickstart/fork-a-repo) | ||
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. | ||
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 | ||
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 | ||
3. Next click `Create branch: [name of branch] from ‘main’` | ||
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` | ||
4. To change the branch that RTD builds on do the following | ||
1. Go to `https://readthedocs.org/dashboard/<USERNAME>-ftcdocs/advanced/` after replacing `<USERNAME>` with your username | ||
2. Click your user in the top right corner | ||
3. Change Default branch to the branch you want to build off of | ||
![demo](https://media.discordapp.net/attachments/836704905364373547/992042745952751626/unknown.png) | ||
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) | ||
6. View Changes on created RTD site by visiting `https://<USERNAME>-ftcdocs.readthedocs.io/en/latest/` after replacing `<USERNAME>` with your username | ||
We are always looking for help improving FTC Docs. For more infomration on contributing | ||
consult the [contributing section](https://ftc-docs.firstinspires.org/contrib/index.html) in FTC Docs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
texlive-xetex | ||
latexmk | ||
jq | ||
fonts-roboto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FTC Docs aims to provide a comprehensive documentation base for *FIRST* Tech Challenge teams and mentors. | ||
It is a community-driven project, hosted and moderated by FIRST Tech Challenge staff, | ||
and we welcome contributions from all teams and mentors. It is our hope that this project will help to | ||
make the community more connected and informed while reducing the fragmentation of documentation present | ||
in *FIRST* Tech Challenge. The information provided is not meant to endorse any specific method or approach, | ||
but rather to provide a information base for students and mentors to make informed decisions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Contribution Guidelines | ||
======================= | ||
|
||
Contributors are the life blood of the project. We welcome contributions but remind everyone to | ||
be a :doc:`Gracious Professional </gracious_professionalism/gp>`. | ||
|
||
Creating a PR | ||
-------------- | ||
|
||
PRs should be made to the `FTC Docs <https://github.com/FIRST-Tech-Challenge/ftcdocs>`_ repo on GitHub. Your | ||
title should aim to desrcribe the purpose of your pr in a *concise* manner. For more information on creating a | ||
PR, see | ||
`this <https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request>`_ | ||
|
||
|
||
Creating an Issue | ||
------------------ | ||
|
||
There are two types of issues: bugs and feature requests. A bug report is an issue that describes a problem with the | ||
documentation. A feature request is an issue that describes a new feature that should be added to the documentation. | ||
Before creating either make sure to check for duplicates. If you find a duplicate, comment on the issue and add your | ||
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 | ||
that is perfectly alright. | ||
|
||
Bug Reports | ||
------------- | ||
|
||
* A description of the bug | ||
* Expected behavior | ||
* Steps to reproduce the bug (If applicable) | ||
* Screenshots (If applicable) | ||
|
||
Feature Requests | ||
------------------ | ||
|
||
* A description of the feature | ||
* Why you think this feature should be added | ||
* Screenshots (If applicable) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Contributing to FTC Docs | ||
========================= | ||
|
||
.. toctree:: | ||
:hidden: | ||
|
||
guidelines/guidelines | ||
style_guide/style-guide | ||
workflow/workflow | ||
tutorials/index | ||
|
||
|
||
Mission Statement | ||
----------------- | ||
|
||
.. include:: /common/mission.rst | ||
|
||
|
||
- :doc:`Contribution Guidelines <guidelines/guidelines>` | ||
- :doc:`Style Guide <style_guide/style-guide>` | ||
- :doc:`FTC Docs Workflow <workflow/workflow>` | ||
- :doc:`Tutorials <tutorials/index>` | ||
|
||
|
||
==== | ||
|
||
FTC Docs is maintained by: | ||
|
||
- Daniel Alfredo Diaz, Jr. | ||
- Elizabeth Gilibert | ||
- Chris Johannesen, Westside Robotics | ||
- Uday Vidyadharan, MFW Team 7350 Watt's NXT? | ||
|
||
A special thanks to everyone who has contributed to this project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FTC Docs Style Guide | ||
==================== | ||
|
||
.. note:: The following is modeled after the `FRC Docs Style Guide <https://docs.wpilib.org/en/stable/docs/contributing/frc-docs/style-guide.html>`_. | ||
|
||
|
||
Filename | ||
-------- | ||
|
||
Use only lowercase alphanumeric characters and - (minus) symbol. | ||
|
||
For documents that will have an identical software/hardware name, append “Hardware” or “Software” to the end of the document name. IE, ultrasonics-hardware.rst | ||
|
||
Suffix filenames with the .rst extension. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Codespaces | ||
========== | ||
:bdg-secondary:`Information` | ||
|
||
What is Codespaces? | ||
------------------- | ||
|
||
Codespaces is a cloud-hosted development environment that you can access from anywhere. | ||
It comes with a pre-configured Visual Studio Code environment and a containerized runtime that matches your development environment. | ||
You can use Codespaces to develop in a browser, or by using the Visual Studio Code Remote - Codespaces | ||
extension in your local Visual Studio Code instance. | ||
|
||
Why use Codespaces? | ||
------------------- | ||
|
||
Codespaces is a great way to develop in a consistent environment, no matter where you are. It | ||
also allows you to develop on a device that might not have the resources to run your development | ||
environment locally. It also allows you to sidestep the need to install and configure your | ||
development environment on a new machine. | ||
|
||
Who should use Codespaces? | ||
--------------------------- | ||
|
||
Codespaces is our recommended development environment for all developers. It is especially | ||
useful for developers who need to work on multiple machines, or who are not comfortable with | ||
setting up their development environment and the troubleshooting that comes with it. | ||
|
||
Downside of Codespaces | ||
---------------------- | ||
|
||
Codespaces is a paid service, and you will be billed for the resources you use. However, | ||
GitHub currently offers GitHub Free tier users **120 Core hours** and GitHub Pro tier users **180 | ||
Core hours** per month for free. To learn more about Codespaces pricing, visit | ||
`GitHub Documentation <https://docs.github.com/en/billing/managing-billing-for-github-codespaces/about-billing-for-github-codespaces>`_. |
34 changes: 34 additions & 0 deletions
34
docs/source/contrib/tutorials/create_codespace/create-codespace.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Creating a Codespace | ||
===================== | ||
:bdg-success:`Repeat` :bdg-info:`Codespaces` | ||
|
||
For every new branch you make in your repository, you must create a new codespace. | ||
This is a virtual environment that will allow you to run your code and test it before merging it into the main branch. | ||
It may take a few minutes to create the codespace, but once it is created, you can access it from the browser and subsequent access will be much faster. | ||
|
||
Steps | ||
----- | ||
|
||
1. Open your **forked** repository in GitHub. | ||
2. On the left side of the page select the branch you want to work on. | ||
|
||
.. figure:: images/select-branch.png | ||
:alt: Select branch | ||
:align: center | ||
:width: 100% | ||
|
||
1. Click on the green "Code" button and select "Create codespace on ``<BRANCH>``". | ||
|
||
.. figure:: images/select-cs.png | ||
:alt: GH Code Menu | ||
:align: center | ||
:width: 100% | ||
|
||
.. figure:: images/create-cs.png | ||
:alt: GH Code Menu | ||
:align: center | ||
:width: 100% | ||
|
||
2. Wait for the codespace to be created. This may take a few minutes. | ||
3. Once the codespace is created, you will be taken to the codespace in your browser. | ||
4. Enter ``CTRL + SHIFT + B`` to build the project. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+432 KB
docs/source/contrib/tutorials/create_codespace/images/select-branch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
Getting to know the GitHub Repo | ||
=============================== | ||
:bdg-secondary:`Information` | ||
|
||
.. note:: | ||
It is assumed that you have created a GitHub account and been given the proper | ||
permissions to work within this repository for training. If you can read this, | ||
you probably have, but double-check with your friendly FTC Support person. | ||
|
||
GitHub is a website where people and organizations can store projects in what's | ||
known as a "repository". Some repositories can be public, meaning anyone can | ||
see the content within it, and some are private. The rST-Primer you're working on | ||
is a private repository, which can only be seen and accessed by those given | ||
access within the organization. *FIRST* Tech Challenge has several public and | ||
private repositories for software projects within the organization. | ||
|
||
Understanding the rST-Primer Repo | ||
--------------------------------- | ||
|
||
The GitHub ``rst-primer`` repository can be found on GitHub at the following address: | ||
|
||
- https://github.com/FIRST-Tech-Challenge/rst-primer/ | ||
|
||
The GitHub repository is where all of our documentation source files and | ||
project content is kept. Figure 1 shows what the main code page for the | ||
``rst-primer`` repository looks like. | ||
|
||
.. figure:: images/rst-primer_repo.png | ||
:width: 80% | ||
:align: center | ||
:alt: Figure 1 rst-primer GitHub Repo | ||
|
||
Figure 1: rst-primer GitHub Repository | ||
|
||
This main **code page** is where you'll do most of your work. It's called a **code | ||
page** because by default the ``< > Code`` tab of the repository is selected, | ||
and this is the page that we're currently viewing. For software projects, the | ||
**code page** is where code is stored; for us, this is where our *content* is | ||
stored. There are several different tabs, but we only really care about the | ||
first four: | ||
|
||
1. ``< > Code`` - The **Code page** shows us the file structure of our repository and | ||
also allows us to view and edit files. | ||
|
||
2. ``Issues`` - The **Issues page** shows us "issues" that any user can submit. These | ||
issues are generally feature request (like "Please add emojis to the document workflow") | ||
or bug reports (like "When I use dropdowns, my document errors out."). Issues are | ||
not meant to be discussions, but very specific tasks that need to be addressed. | ||
|
||
3. ``Pull Requests`` - The **Pull Requests page** shows us "Pull Requests"; for this | ||
project, these will be requests to merge changes into the main branch. Don't worry | ||
about this page just now, we'll cover **Pull Requests** in more detail later. | ||
|
||
4. ``Discussions`` - The **Discussions page** is where users can visit and ask | ||
questions or get help on topics. This is meant to be an open discussion area for the | ||
repository. This area is similar to a forum, but specifically for ``rst-primer``. | ||
|
||
The ``< > Code`` tab will be the tab that we will spend most our time in, as this | ||
is where we manage *branches*, view and edit files, and perform most of our basic | ||
functions. | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Tutorials | ||
============ | ||
|
||
These are a couple tutorials that will walk you through the process of creating and editing | ||
in FTC Docs. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:numbered: | ||
|
||
overview/overview | ||
codespaces/codespaces | ||
github_repo/github-repo | ||
make_fork/make-fork | ||
update_fork/update-fork | ||
setup/setup | ||
make_branch/make-branch | ||
create_codespace/create-codespace | ||
switch_branch/switch-branch | ||
make_rst/index | ||
setup_credentials/setup-credentials | ||
make_pr/make-pr | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we using a private repository as the example? I think that everyone should be able to access all the links we use. This repo could be a better example since it's the repo that people need to work with directly in order to contribute, and it's public.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pr is not yet complete and we are still in the process of migrating references to the
rst-primer
repository. This was initially used as internal documentation and is now being migrated to be documentation for all. If you could redo the references to rst primer (images and text) that would be much appreciated.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I can work on redoing references. Should they be to this repo or somewhere else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! They should all be to this repo.