Skip to content
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

Remove Github issue track link from footer #20

Draft
wants to merge 98 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
86b4bc7
Add menu first draft (incomplete)
hamishwillee Mar 8, 2016
fa8385e
add new version of theme.css
hamishwillee Mar 8, 2016
31c3ba7
Update setup.py
hamishwillee Mar 8, 2016
b70c04d
Make it easy to build demo on windows outside of grunt
hamishwillee Mar 8, 2016
728f7d5
Add test docs for main menu news, stores and TOC behaviours
hamishwillee Mar 8, 2016
ea648f5
Add layout for all main to-bar resources - with dynamic detection of …
hamishwillee Mar 9, 2016
eec7550
Merge branch 'master' of https://github.com/hamishwillee/sphinx_rtd_t…
hamishwillee Mar 9, 2016
915b89c
Move docs to expected locations
hamishwillee Mar 9, 2016
024daff
Fix up layout to expect docs in /docs
hamishwillee Mar 9, 2016
7dab396
fix up toc info
hamishwillee Mar 9, 2016
2264482
Make table of contents expanded
hamishwillee Mar 10, 2016
d09d4fd
Fix up full toc tree
hamishwillee Mar 10, 2016
1efe6c7
Remove explicit setting of target
hamishwillee Mar 14, 2016
663db27
Fix up history of ardupilot file
hamishwillee Mar 14, 2016
cad7ef1
Make the Home and sub menus point to new site
hamishwillee Mar 14, 2016
f357a48
add support for acknowledgements page
hamishwillee Mar 14, 2016
fbb43a3
Add support for edit on github
hamishwillee Mar 15, 2016
af40353
Add issue/forums link at bottom of page.
hamishwillee Mar 15, 2016
424fc6f
Add wiki editing guide to about top menu link
hamishwillee Mar 16, 2016
263e2a9
Add downloads menu links and test code
hamishwillee Mar 17, 2016
95b865e
Add firmware links to theme
hamishwillee Mar 17, 2016
9e4f0b3
add dronecode logo and donate button to sidebar
hamishwillee Mar 22, 2016
4b8d04b
point github sources to moved wiki
hamishwillee Mar 23, 2016
e6af6cf
make the donate and top menu separate files for easier editing
hamishwillee Mar 23, 2016
1bf734c
Add CC-BYSA to footer
hamishwillee Mar 23, 2016
1672c3e
hide donate button
hamishwillee Mar 23, 2016
bb0855d
Fix git issue link to go to new repo
hamishwillee Mar 23, 2016
f77e524
Fix git issue link to go to new repo
hamishwillee Mar 23, 2016
f304c4e
Change forums link to say Forums rather than APM Forums
hamishwillee Mar 24, 2016
5b867ba
Fix error loading resource on ipad
hamishwillee Mar 25, 2016
672c7a8
Make menu only open when its been opened
hamishwillee Mar 25, 2016
134d439
add css for ipad fix
hamishwillee Mar 25, 2016
7ee49ee
adding official analytics tracker
Mar 27, 2016
09c6e6f
Merge pull request #1 from jpkh/master
hamishwillee Mar 27, 2016
77f9edb
fixning z_top menu links
Mar 27, 2016
b77bb57
adding link to new discuss server
Mar 27, 2016
a6d4ac6
Merge pull request #3 from jpkh/master
tridge Mar 27, 2016
472a46c
Point footer to new discussion boards
hamishwillee Mar 28, 2016
7e2db06
Don't display search in ardupilot wiki - based on the html_short_titl…
hamishwillee Mar 29, 2016
bae72ce
Add transifex translation javascript
hamishwillee Apr 7, 2016
67ff23e
undo last change for testing
hamishwillee Apr 7, 2016
954c443
Add back in translation tracking code
hamishwillee Apr 7, 2016
9de625b
move transifex code out of extrablock - is not appearing live
hamishwillee Apr 7, 2016
8edcfc9
Fix transifex API key
hamishwillee Apr 7, 2016
5383952
Update requirements.txt
hamishwillee Apr 7, 2016
1a1a59d
Hard code the suffix of files to rst to workaround bug where suffix i…
hamishwillee Apr 13, 2016
d674f0e
Change requirements on theme to include >3.1 of Sphinx (again) as roo…
hamishwillee Apr 18, 2016
41e1a22
Remove diyd link from community top menu. Fix but in Developer link
hamishwillee Apr 20, 2016
9d76a7d
add donate button back
hamishwillee Jun 23, 2016
e0286e3
Fix links to point to ardupilot.org
billbonney Aug 25, 2016
1474efc
Merge pull request #4 from billbonney/fix-ardupilot-org-links
jpkh Aug 25, 2016
2887099
update sidebar
tridge Aug 25, 2016
8623c4b
adding hosting links
jpkh Aug 26, 2016
16cdcd2
adding individual/corporate sponsor links #541
jpkh Sep 6, 2016
1216fa3
removing extra breaks
jpkh Sep 6, 2016
bfe0a6c
top-menu: add facebook and gitter to Community drop-down
rmackay9 Sep 8, 2016
7c1091f
top-menu: add drones-discuss to Community drop-down
rmackay9 Sep 8, 2016
7ad69ba
top-menu: add link to license page
rmackay9 Sep 8, 2016
428a699
top-menu: add mumble to community menu
rmackay9 Sep 10, 2016
9f880d0
Add support for more compact table presentation
hamishwillee Sep 27, 2016
c3f7e30
Merge pull request #5 from ArduPilot/hgw_compact_table_layout
hamishwillee Sep 28, 2016
b40eb4b
moving infra link
jpkh Sep 29, 2016
5119a98
removing old infra link
jpkh Sep 29, 2016
4134326
wiki: add ArduSub to index
CraigElder Oct 4, 2016
5f4af7b
removing extra {{target}}
jpkh Oct 4, 2016
6feee96
Fix Tutorial PDFs link
OXINARF Apr 25, 2017
ca03b13
Merge pull request #6 from OXINARF/pr/fix-tutorials-link
hamishwillee Apr 26, 2017
715a679
README: fix typo in ArduPilot
rmackay9 May 12, 2017
5bc17fd
z_top_menu: add trademark
rmackay9 May 12, 2017
b066664
setup.py: replace references to hamish repo with ardupilot
rmackay9 May 22, 2017
448e21d
Adding speed measurement
jpkh Jun 5, 2017
7c1a903
top-menu: add link to companion-computers page
rmackay9 Jan 5, 2018
d4a2da0
adding swag store on left side bar
jpkh Feb 8, 2018
c02df0e
adding swag shop link to top menu bar
jpkh Feb 14, 2018
40acd4d
top-menu: rename Dev to Developer in menu
rmackay9 Feb 22, 2018
962d17a
removed link to old PDF files
jpkh Apr 17, 2018
46e84ae
Change Corporate doc link to point to Partners
hamishwillee Jul 26, 2018
da23475
Merge pull request #9 from hamishwillee/partners
hamishwillee Jul 26, 2018
d5e9143
adding comment for logo/fav icon area
jpkh Aug 15, 2018
30c2fd6
sidebar: use relative links to donation pages
OXINARF May 12, 2019
ad9add7
Update links
brunoolivieri Oct 21, 2019
e43fc3e
Remove Edit on Github link on Parameters pages (#11)
hamishwillee Nov 3, 2019
f29012e
Merge pull request #10 from brunoolivieri/patch-1
tridge Nov 6, 2019
cc5f27a
update for https
tridge Dec 6, 2019
4e28243
Update footer for httpS
brunoolivieri Dec 6, 2019
40a2181
Merge pull request #12 from brunoolivieri/patch-2
tridge Dec 6, 2019
73aff0e
removed live.js
tridge Dec 6, 2019
121dcb3
z_top_menu: remove Servers by jDrones
rmackay9 Jan 13, 2020
93bbbbf
z_top_menu: Add MAVProxy link
stephendade May 19, 2020
1268267
Merge pull request #14 from stephendade/patch-2
Hwurzburg May 27, 2020
bd7dc2b
z_top_menu: Remove Mumble and Add Discord to menu
CraigElder Sep 22, 2020
4ee7e27
added Partners Program to About menu
tridge Nov 9, 2021
ac5a017
Merge pull request #16 from ArduPilot/pr-partners-menu
Hwurzburg Nov 9, 2021
c9f60b4
top_menu: remove swag shop
rmackay9 Dec 23, 2021
18b8feb
fixed buttons
tridge Jan 21, 2022
8492eac
Merge pull request #18 from ArduPilot/pr-buttons
tridge Jan 21, 2022
b984f58
Add Blimp
Hwurzburg Mar 27, 2022
36c34f3
Remove Github issue track link from footer
TunaLobster Jun 23, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,24 @@
.. _demo: http://docs.readthedocs.org
.. _hidden: http://sphinx-doc.org/markup/toctree.html

**************************
Read the Docs Sphinx Theme
**************************
*****************************************
ARDUPILOT Read the Docs-ish Sphinx Theme
*****************************************

This is a modification of the [snide/sphinx_rtd_theme](https://github.com/snide/sphinx_rtd_theme).
It supports the addition of a top site bar above the main sphinx content. This site bar includes menu content
that is populated based on the presence of certain files in the source tree at /docs/. For example,
if a file ``docs/project-news.rst`` is present in the tree an "About" menu will be displayed.

It also will display a table of contents in any article named /docs/common-table-of-contents.rst

The theme displays the "Edit on Github" link by default on non-index pages. This is VERY tied into the ardupilot_wiki
source structure. It uses the value in "html_short_title" field in the conf.py
to determine the path. The value must therefore be a path that matches where the source is on github - e.g. "copter", "rover", "ardupilot"
If this is done, source files will correctly be linked in https://github.com/hamishwillee/ardupilot_wiki.
For common files it will link to the original in the common folder.



.. contents::

Expand Down
263 changes: 263 additions & 0 deletions demo_docs/make.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,263 @@
@ECHO OFF

REM Command file for Sphinx documentation

if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% source
set I18NSPHINXOPTS=%SPHINXOPTS% source
if NOT "%PAPER%" == "" (
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS%
)

if "%1" == "" goto help

if "%1" == "help" (
:help
echo.Please use `make ^<target^>` where ^<target^> is one of
echo. html to make standalone HTML files
echo. dirhtml to make HTML files named index.html in directories
echo. singlehtml to make a single large HTML file
echo. pickle to make pickle files
echo. json to make JSON files
echo. htmlhelp to make HTML files and a HTML help project
echo. qthelp to make HTML files and a qthelp project
echo. devhelp to make HTML files and a Devhelp project
echo. epub to make an epub
echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
echo. text to make text files
echo. man to make manual pages
echo. texinfo to make Texinfo files
echo. gettext to make PO message catalogs
echo. changes to make an overview over all changed/added/deprecated items
echo. xml to make Docutils-native XML files
echo. pseudoxml to make pseudoxml-XML files for display purposes
echo. linkcheck to check all external links for integrity
echo. doctest to run all doctests embedded in the documentation if enabled
echo. coverage to run coverage check of the documentation if enabled
goto end
)

if "%1" == "clean" (
for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
del /q /s %BUILDDIR%\*
goto end
)


REM Check if sphinx-build is available and fallback to Python version if any
%SPHINXBUILD% 1>NUL 2>NUL
if errorlevel 9009 goto sphinx_python
goto sphinx_ok

:sphinx_python

set SPHINXBUILD=python -m sphinx.__init__
%SPHINXBUILD% 2> nul
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
)

:sphinx_ok


if "%1" == "html" (
%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/html.
goto end
)

if "%1" == "dirhtml" (
%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
goto end
)

if "%1" == "singlehtml" (
%SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
goto end
)

if "%1" == "pickle" (
%SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can process the pickle files.
goto end
)

if "%1" == "json" (
%SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can process the JSON files.
goto end
)

if "%1" == "htmlhelp" (
%SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can run HTML Help Workshop with the ^
.hhp project file in %BUILDDIR%/htmlhelp.
goto end
)

if "%1" == "qthelp" (
%SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can run "qcollectiongenerator" with the ^
.qhcp project file in %BUILDDIR%/qthelp, like this:
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\ArduPilot.qhcp
echo.To view the help file:
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\ArduPilot.ghc
goto end
)

if "%1" == "devhelp" (
%SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished.
goto end
)

if "%1" == "epub" (
%SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The epub file is in %BUILDDIR%/epub.
goto end
)

if "%1" == "latex" (
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
if errorlevel 1 exit /b 1
echo.
echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
goto end
)

if "%1" == "latexpdf" (
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
cd %BUILDDIR%/latex
make all-pdf
cd %~dp0
echo.
echo.Build finished; the PDF files are in %BUILDDIR%/latex.
goto end
)

if "%1" == "latexpdfja" (
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
cd %BUILDDIR%/latex
make all-pdf-ja
cd %~dp0
echo.
echo.Build finished; the PDF files are in %BUILDDIR%/latex.
goto end
)

if "%1" == "text" (
%SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The text files are in %BUILDDIR%/text.
goto end
)

if "%1" == "man" (
%SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The manual pages are in %BUILDDIR%/man.
goto end
)

if "%1" == "texinfo" (
%SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo.
goto end
)

if "%1" == "gettext" (
%SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The message catalogs are in %BUILDDIR%/locale.
goto end
)

if "%1" == "changes" (
%SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
if errorlevel 1 exit /b 1
echo.
echo.The overview file is in %BUILDDIR%/changes.
goto end
)

if "%1" == "linkcheck" (
%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
if errorlevel 1 exit /b 1
echo.
echo.Link check complete; look for any errors in the above output ^
or in %BUILDDIR%/linkcheck/output.txt.
goto end
)

if "%1" == "doctest" (
%SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
if errorlevel 1 exit /b 1
echo.
echo.Testing of doctests in the sources finished, look at the ^
results in %BUILDDIR%/doctest/output.txt.
goto end
)

if "%1" == "coverage" (
%SPHINXBUILD% -b coverage %ALLSPHINXOPTS% %BUILDDIR%/coverage
if errorlevel 1 exit /b 1
echo.
echo.Testing of coverage in the sources finished, look at the ^
results in %BUILDDIR%/coverage/python.txt.
goto end
)

if "%1" == "xml" (
%SPHINXBUILD% -b xml %ALLSPHINXOPTS% %BUILDDIR%/xml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The XML files are in %BUILDDIR%/xml.
goto end
)

if "%1" == "pseudoxml" (
%SPHINXBUILD% -b pseudoxml %ALLSPHINXOPTS% %BUILDDIR%/pseudoxml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The pseudo-XML files are in %BUILDDIR%/pseudoxml.
goto end
)

:end
9 changes: 7 additions & 2 deletions demo_docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
#html_title = None

# A shorter title for the navigation bar. Default is the same as html_title.
#html_short_title = None
html_short_title = 'DemoX'

# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
Expand Down Expand Up @@ -160,7 +160,9 @@
#html_split_index = False

# If true, links to the reST sources are added to the pages.
html_show_sourcelink = True
html_show_sourcelink = False



# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
#html_show_sphinx = True
Expand All @@ -179,6 +181,9 @@
# Output file base name for HTML help builder.
htmlhelp_basename = 'SphinxRTDthemedemodoc'

# In theory we should be able to alter this value using -A flag but that doesn't appear to work :-(
html_context= {'target':'http://new.ardupilot.org/wiki/'}


# -- Options for LaTeX output --------------------------------------------------

Expand Down
7 changes: 7 additions & 0 deletions demo_docs/source/docs/common-acknowledgments.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. _common_acknowledgements:

================
Acknowledgements
================

This is just to test the "Acknowledgements" link functionality.
7 changes: 7 additions & 0 deletions demo_docs/source/docs/common-commercial-support.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. _common_commercial_support:

==================
Commercial Support
==================

This is just to test the "Commerical Support" link functionality.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. _common-downloads_advanced_user_tools:

==============================
DOWNLOADS: Advanced User Tools
==============================

TEST page to verify menu functionality.
7 changes: 7 additions & 0 deletions demo_docs/source/docs/common-downloads_developer_tools.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. _common-downloads_developer_tools:

==========================
DOWNLOADS: Developer Tools
==========================

TEST page to verify menu functionality.
7 changes: 7 additions & 0 deletions demo_docs/source/docs/common-downloads_firmware.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. _common-downloads_firmware:

===================
DOWNLOADS: Firmware
===================

TEST page to verify menu functionality.
7 changes: 7 additions & 0 deletions demo_docs/source/docs/common-history-of-ardupilot.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. _common-history-of-ardupilot:

====================
History of ArduPilot
====================

This is just to test the "History of ArduPilot" link functionality.
7 changes: 7 additions & 0 deletions demo_docs/source/docs/common-stores.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. _stores:

======
Stores
======

This is just to test the "store" link functionality.
7 changes: 7 additions & 0 deletions demo_docs/source/docs/common-table-of-contents.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. _common-table-of-contents:

=================
Table of Contents
=================

This tests automatic addition of the TOC at the end of a page named "common-table-of-contents.rst"
Loading