-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from alexdresko/doc-doc
Doc doc
- Loading branch information
Showing
7 changed files
with
63 additions
and
16 deletions.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CONTRIBUTING | ||
============ | ||
|
||
To learn more about contributing to HSPI, please visit http://hspi.readthedocs.io/en/latest/how-to-contribute.html |
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
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,48 @@ | ||
Documentation | ||
############# | ||
|
||
Summary | ||
------- | ||
|
||
This document explains how to set up your environment to make changes to HSPI's documentation. If you're a new contributer to HSPI, be sure to read everything in :doc:`how-to-contribute`. | ||
|
||
HSPI's documentation is hosted on https://readthedocs.org/ (RTD). The documentation is written using Sphinx_, so you'll need Python_. You'll also want gulp, and therefore Node if you want to take advantage of some of the utilities I wrote to make writing documentation for HSPI easier. | ||
|
||
If you're starting with a completely new development environment, here are the steps I'd go through to get things set up. If you already have some of these tools, or prefer to do things differently, you're on your own. :) | ||
|
||
Installing the software | ||
----------------------- | ||
|
||
#. Install Chocolatey_ | ||
At any point in the following steps, you may need to restart your console for the newly installed tool to become available in your console session. | ||
#. Install git via `choco install git -y` | ||
#. Install python via `choco install python -y` | ||
#. Install VS Code via `choco install visualstudiocode -y` | ||
#. Install Nodejs via `choco install nodejs -y` | ||
#. Install Sphinx via `pip install sphinx` | ||
#. Install Sphinx autobuild via `pip install sphinx sphinx-autobuild` | ||
#. Install gulp via `npm install -g gulp` | ||
#. `cd` to the directory where you cloned HSPI from git | ||
#. Install the npm dependencies via `npm install` | ||
#. Install the RTD Sphinx template via `pip install sphinx_rtd_theme` | ||
#. Fire up the live preview by running `gulp watch` from the root of the repo. This will launch a web browser on http://localhost:3000/. Any changes you make to any of the rst files in HSPI will usually automatically refresh the browser, allowing you to see the changes you made as they'll appear on http://hspi.readthedocs.io. You might sometimes have to run `gulp build` to perform a full build of all RST files if it seems like the files aren't updating properly. Also, keep an eye on this console window between saves to make sure you don't have any errors in your RST syntax. | ||
|
||
That's it. I just tested those instructions on my wife's laptop, in the car while she's in Walmart, tethered to my phone, while writing this very page. Clearly it works. | ||
|
||
To learn more about Sphinx and restructuredText, go to http://www.sphinx-doc.org/en/stable/contents.html. It takes a while to get used to rst, but it's much more powerful than Markdown. | ||
|
||
To learn more about ReadTheDocs, go to http://docs.readthedocs.io/en/latest/ | ||
|
||
|
||
|
||
|
||
|
||
.. _Python: https://www.python.org/ | ||
.. _Sphinx: http://sphinx-doc.org/latest/install.html | ||
.. _Chocolatey: https://chocolatey.org/install | ||
|
||
Once you have Python and Sphinx installed, drop to a command line and run `pip install sphinx sphinx-autobuild` to get the Shinx build tool. | ||
|
||
|
||
|
||
I prefer to write the documentation in VS Code simply because I like VS Code. |
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,17 +1,11 @@ | ||
How to contribute | ||
================= | ||
|
||
Prerequisites | ||
------------- | ||
.. toctree:: | ||
:maxdepth: 4 | ||
:caption: Contents: | ||
|
||
* Visual Studio 2017 (https://www.visualstudio.com/vs/) is required to develop against the HSPI repo. (You can install install the templates and consume the HSPI nuget package on VS 2015). The free Community edition plenty is powerful enough to do HS plugin development. | ||
* (recommended) Resharper (https://www.jetbrains.com/resharper) | ||
docs | ||
code-of-conduct | ||
|
||
Setting up your development environment | ||
--------------------------------------- | ||
|
||
Development process | ||
------------------- | ||
|
||
Integrations | ||
------------ |
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