Skip to content

Commit

Permalink
doc: restructure and create index pages
Browse files Browse the repository at this point in the history
Move all lead pages to be index pages and create redirect rules from the
old pointers.

Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif committed Feb 5, 2019
1 parent 58632f8 commit 2b9458c
Show file tree
Hide file tree
Showing 13 changed files with 54 additions and 40 deletions.
12 changes: 6 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ support systems:

.. _Slack Invite: https://tinyurl.com/yarkuemx
.. _Slack: https://zephyrproject.slack.com
.. _supported boards: http://docs.zephyrproject.org/latest/boards/boards.html
.. _supported boards: http://docs.zephyrproject.org/latest/boards
.. _Zephyr Documentation: http://docs.zephyrproject.org
.. _Zephyr Introduction: http://docs.zephyrproject.org/latest/introduction/introducing_zephyr.html
.. _Getting Started Guide: http://docs.zephyrproject.org/latest/getting_started/getting_started.html
.. _Contribution Guide: http://docs.zephyrproject.org/latest/contribute/index.html
.. _Zephyr Introduction: http://docs.zephyrproject.org/latest/introduction
.. _Getting Started Guide: http://docs.zephyrproject.org/latest/getting_started
.. _Contribution Guide: http://docs.zephyrproject.org/latest/contribute
.. _Zephyr GitHub wiki: https://github.com/zephyrproject-rtos/zephyr/wiki
.. _Zephyr Development mailing list: https://lists.zephyrproject.org/g/devel
.. _Zephyr mailing list subgroups: https://lists.zephyrproject.org/g/main/subgroups
.. _Sample and Demo Code Examples: http://docs.zephyrproject.org/latest/samples/samples.html
.. _Security Overview: http://docs.zephyrproject.org/latest/security/security-overview.html
.. _Sample and Demo Code Examples: http://docs.zephyrproject.org/latest/samples
.. _Security Overview: http://docs.zephyrproject.org/latest/security
File renamed without changes.
2 changes: 1 addition & 1 deletion cmake/host-tools.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if(${CMAKE_MATCH_1} VERSION_LESS ${MIN_DTC_VERSION})
assert(0 "The detected dtc version is unsupported. \n\
The version was found to be ${CMAKE_MATCH_1} \n\
But the minimum supported version is ${MIN_DTC_VERSION} \n\
See https://docs.zephyrproject.org/latest/getting_started/getting_started.html \n\
See https://docs.zephyrproject.org/latest/getting_started/ \n\
for how to use the SDK's dtc alongside a custom toolchain."
)
endif()
Expand Down
File renamed without changes.
16 changes: 15 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,21 @@
#
# list of tuples (old_url, new_url) for pages to redirect
# (URLs should be relative to document root, only)
html_redirect_pages = [('contribute/contribute_guidelines', 'contribute/index'),]
html_redirect_pages = [
('contribute/contribute_guidelines', 'contribute/index'),
('application/application', 'application/index.rst'),
('security/security', 'security/index'),
('boards/boards', 'boards/index'),
('samples/samples', 'samples/index'),
('releases/release-notes', 'releases/index'),
('getting_started/getting_starting', 'getting_started/index'),
('introduction/introducing_zephyr', 'introduction/index'),
('api/index', 'reference/index'),
('api/api', 'reference/index'),
('subsystems/subsystems', 'reference/index'),
('kernel/kernel', 'reference/kernel/index'),

]

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

Expand Down
File renamed without changes.
30 changes: 15 additions & 15 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,59 +34,59 @@ licensing, as described in :ref:`Zephyr_Licensing`.

<ul class="grid">
<li class="grid-item">
<a href="introduction/introducing_zephyr.html">
<a href="introduction/index.html">
<img alt="" src="_static/images/kite.png"/>
<h2>Introduction</h2>
</a>
<p>Introducing the Zephyr Project: the overview, architecture, features and licensing</p>
</li>
<li class="grid-item">
<a href="getting_started/getting_started.html">
<a href="getting_started/index.html">
<img alt="" src=""/>
<h2>Getting Started Guide</h2>
</a>
<p>Follow this guide to set up a Zephyr development environment on your
system, and then build and run a sample application.</p>
</li>
<li class="grid-item">
<a href="contribute/">
<a href="contribute/index.html">
<img alt="" src=""/>
<h2>Contribution Guidelines</h2>
</a>
<p>As an open-source project, we welcome and encourage the community
to submit patches directly to the project.</p>
</li>
<li class="grid-item">
<a href="samples/samples.html">
<a href="samples/index.html">
<img alt="" src=""/>
<h2>Samples and Demos</h2>
</a>
<p>A list of samples and demos that can run on a variety of boards supported
by Zephyr</p>
</li>
<li class="grid-item">
<a href="reference/">
<a href="reference/index.html">
<img alt="" src=""/>
<h2>API Reference</h2>
</a>
<p>API Documentation and Reference</p>
</li>
<li class="grid-item">
<a href="security/security.html">
<a href="security/index.html">
<img alt="" src=""/>
<h2>Security</h2>
</a>
<p>Requirements, processes, and developer guidelines for ensuring security is addressed within the Zephyr project.</p>
</li>
<li class="grid-item">
<a href="boards/boards.html">
<a href="boards/index.html">
<img alt="" src=""/>
<h2>Supported Boards</h2>
</a>
<p>List if supported boards and platforms.</p>
</li>
<li class="grid-item">
<a href="guides/">
<a href="guides/index.html">
<img alt="" src=""/>
<h2>User and Developer Guides</h2>
</a>
Expand All @@ -102,17 +102,17 @@ licensing, as described in :ref:`Zephyr_Licensing`.
.. toctree::
:maxdepth: 1

introduction/introducing_zephyr.rst
getting_started/getting_started.rst
introduction/index.rst
getting_started/index.rst
contribute/index.rst
development_process/index.rst
application/application.rst
application/index.rst
reference/index.rst
guides/index.rst
security/security.rst
samples/samples.rst
boards/boards.rst
releases/release-notes.rst
security/index.rst
samples/index.rst
boards/index.rst
releases/index.rst

.. only:: html

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion doc/security/security.rst → doc/security/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. _zephyr-security-docs:
.. _security_section:

Security
########
Expand Down
15 changes: 15 additions & 0 deletions samples/classic.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.. _classic_samples:

Classic Samples
###############

The following are samples that can be run on any of the supported
platforms:

.. toctree::
:maxdepth: 1
:glob:

hello_world/*
synchronization/*
philosophers/*
2 changes: 1 addition & 1 deletion samples/samples.rst → samples/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Samples and Demos
:maxdepth: 2
:glob:

kernel
classic
basic/*
userspace/*
subsys/subsys.rst
Expand Down
15 changes: 0 additions & 15 deletions samples/kernel.rst

This file was deleted.

0 comments on commit 2b9458c

Please sign in to comment.