Code Monkey home page Code Monkey logo

ftcdocs's Introduction

FIRST Tech Challenge Documentation Project

Build Link-Check

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

  4. Install Pip following these 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

  7. Install dependencies for PDF

    • Ubuntu/Debian: xargs -a dependencies sudo apt install -y
    • Windows: Install MiKTeX from here
  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. 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 with your commit message
    • git push
  11. Create a Pull Request to upstream repository. Make sure to be concise in your PR title and description.

Cloud Method

  1. Create fork of FtcDocs Project as shown here
  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 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
  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
  6. View Changes on created RTD site by visiting https://<USERNAME>-ftcdocs.readthedocs.io/en/latest/ after replacing <USERNAME> with your username

ftcdocs's People

Contributors

texasdiaz avatar uvidyadharan avatar emcclurg avatar cmacfarl avatar noahandrews avatar geekygirlsarah avatar alechub avatar davyhallihan avatar egeakman avatar maths22 avatar lunerwalker2 avatar rowan-mcalpin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.