docs: document running your code
parent
e3950267dc
commit
dad91d7855
|
|
@ -9,6 +9,7 @@ Features:
|
||||||
Docs:
|
Docs:
|
||||||
* Documented the n-sided-ness of polygons and stars
|
* Documented the n-sided-ness of polygons and stars
|
||||||
* svg: document rasterization on mask (#192)
|
* svg: document rasterization on mask (#192)
|
||||||
|
* Document how to run the code (#186)
|
||||||
|
|
||||||
Chores:
|
Chores:
|
||||||
* Bumped deps: Pango et al. to 3.3.6, Cairo to 1.16.4, Nokogiri to 1.10.3
|
* Bumped deps: Pango et al. to 3.3.6, Cairo to 1.16.4, Nokogiri to 1.10.3
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
# Building these Docs Locally
|
||||||
|
|
||||||
|
Install these:
|
||||||
|
|
||||||
|
$ pip install sphinx sphinx-autobuild sphinx_rtd_theme
|
||||||
|
|
||||||
|
To run the server:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ cd docs
|
||||||
|
$ ./server.bat
|
||||||
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
```
|
||||||
|
$ sphinx-autobuild . _build/html
|
||||||
|
```
|
||||||
|
|
||||||
|
Then visit http://localhost:8000 to see the docs.
|
||||||
|
|
@ -55,9 +55,9 @@ author = u'Andy Meneely'
|
||||||
# built documents.
|
# built documents.
|
||||||
#
|
#
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
version = u'v0.14'
|
version = u'v0.15'
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = u'v0.14.2'
|
release = u'v0.15.0'
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ See :doc:`/install` for more details.
|
||||||
|
|
||||||
This guide also assumes you've got some basic Ruby experience, and you've got your tools set up (i.e. text editor, command line, image preview, etc). See :doc:`part_0_learning_ruby` to see my recommendations.
|
This guide also assumes you've got some basic Ruby experience, and you've got your tools set up (i.e. text editor, command line, image preview, etc). See :doc:`part_0_learning_ruby` to see my recommendations.
|
||||||
|
|
||||||
|
|
||||||
Our Idea: Familiar Fights
|
Our Idea: Familiar Fights
|
||||||
-------------------------
|
-------------------------
|
||||||
Let's start with an idea for a game: Familiar Fights. Let's say we want to have players fight each other based on collecting cards that represent their familiars, each with different abilities. We'll have two factions: drones and humans. Each card will have some artwork in it, and some text describing their powers.
|
Let's start with an idea for a game: Familiar Fights. Let's say we want to have players fight each other based on collecting cards that represent their familiars, each with different abilities. We'll have two factions: drones and humans. Each card will have some artwork in it, and some text describing their powers.
|
||||||
|
|
@ -46,6 +47,28 @@ Go ahead and put "Familiar Fights" as an idea for a title in the ``IDEAS.md`` fi
|
||||||
|
|
||||||
If you're using Git or other version control, now's a good time to commit. See :doc:`/guides/git`.
|
If you're using Git or other version control, now's a good time to commit. See :doc:`/guides/git`.
|
||||||
|
|
||||||
|
Running Your Squib Build
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
The simplest way to build with Squib is to run this command line:
|
||||||
|
|
||||||
|
.. code-block:: none
|
||||||
|
|
||||||
|
$ ruby deck.rb
|
||||||
|
|
||||||
|
Squib cares about which directory you are currently in. For example, it will create that ``_output`` directory in the current directory, and it will look up files according to your current directory.
|
||||||
|
|
||||||
|
An alternative to running the ruby command directly is to use Ruby's Rake build system.
|
||||||
|
Rakefiles are designed for building projects that have lots of files (that's us!).
|
||||||
|
The default Rakefile that Squib generates simply runs the ``deck.rb``. To use Rake, you run this from this directory or any subdirectory.
|
||||||
|
|
||||||
|
.. code-block:: none
|
||||||
|
|
||||||
|
$ rake
|
||||||
|
|
||||||
|
We'll discuss Rake and various other workflow things like auto-building in the :doc:`/guides/getting-started/part_3_workflows`.
|
||||||
|
|
||||||
|
|
||||||
Data or Layout?
|
Data or Layout?
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue