Misc changes for better structure

develop
PeridexisErrant 2015-09-22 18:42:15 +10:00
parent 336f8ee611
commit eb5286dd86
7 changed files with 18 additions and 13 deletions

4
.gitignore vendored

@ -16,11 +16,13 @@ library/private/config.h
# any build folders # any build folders
build*/ build*/
_build/*
nix nix
buntu buntu
build/VC2010 build/VC2010
# Sphinx generated documentation
docs/_*/
#except for the real one #except for the real one
!build/ !build/

@ -3,20 +3,18 @@ addons:
apt: apt:
packages: packages:
- lua5.2 - lua5.2
# - python3-docutils
language: cpp language: cpp
env: env:
matrix: matrix:
-LUA_VERSION=5.2 -LUA_VERSION=5.2
before_install: before_install:
#- sudo apt-get install lua$LUA_VERSION #- sudo apt-get install lua$LUA_VERSION
#- sudo pip install docutils pip install --user sphinx
pip install --user docutils
script: script:
- python travis/pr-check-base.py - python travis/pr-check-base.py
- python travis/lint.py - python travis/lint.py
- python travis/script-syntax.py --ext=lua --cmd="luac$LUA_VERSION -p" - python travis/script-syntax.py --ext=lua --cmd="luac$LUA_VERSION -p"
- python travis/script-syntax.py --ext=rb --cmd="ruby -c" - python travis/script-syntax.py --ext=rb --cmd="ruby -c"
- ./fixTexts.sh --force - make html
notifications: notifications:
email: false email: false

@ -5,7 +5,7 @@
SPHINXOPTS = SPHINXOPTS =
SPHINXBUILD = sphinx-build SPHINXBUILD = sphinx-build
PAPER = PAPER =
BUILDDIR = _build BUILDDIR = docs/_build
# User-friendly check for sphinx-build # User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)

@ -1,14 +1,19 @@
Welcome to DFHack's documentation! Welcome to DFHack's documentation!
================================== ==================================
Contents: Contents for users:
.. toctree:: .. toctree::
:maxdepth: 2 :maxdepth: 2
docs/Readme docs/Readme
Contents for developers:
.. toctree::
:maxdepth: 1
docs/Contributing docs/Contributing
docs/Contributors
docs/Compile docs/Compile
docs/Lua API docs/Lua API
docs/Authors

@ -33,7 +33,7 @@ import shlex
extensions = [] extensions = []
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates'] templates_path = []
# The suffix(es) of source filenames. # The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string: # You can specify multiple suffix as a list of string:
@ -75,7 +75,7 @@ language = None
# List of patterns, relative to source directory, that match files and # List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files. # directories to ignore when looking for source files.
exclude_patterns = ['_build'] exclude_patterns = ['docs/_build']
# The reST default role (used for this markup: `text`) to use for all # The reST default role (used for this markup: `text`) to use for all
# documents. # documents.
@ -138,7 +138,7 @@ html_theme = 'alabaster'
# Add any paths that contain custom static files (such as style sheets) here, # Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files, # relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css". # so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static'] html_static_path = []
# Add any extra paths that contain custom files (such as robots.txt or # Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied # .htaccess) here, relative to this directory. These files are copied

@ -5,7 +5,7 @@ REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" ( if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build set SPHINXBUILD=sphinx-build
) )
set BUILDDIR=_build set BUILDDIR=docs\_build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% . set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
set I18NSPHINXOPTS=%SPHINXOPTS% . set I18NSPHINXOPTS=%SPHINXOPTS% .
if NOT "%PAPER%" == "" ( if NOT "%PAPER%" == "" (