Docs: Align presentation with TF-A
This patch adjusts the index and configuration used
for user-guide generation. It is aimed at helping
render the documents in a similar fashion to TF-A
documentation
* A trustedfirmware logo has been set
* TF-M abbreviations have been expanded
* Menu navigation is now manually sorted
* Added license to the table of contents
* Disabled collapse_navigation in html_theme_options
Change-Id: I1cabff549a7c34bdb5c7a1da81addf3be094b6a5
Signed-off-by: Galanakis, Minos <minos.galanakis@arm.com>
diff --git a/docs/_static/images/tf_logo_white.png b/docs/_static/images/tf_logo_white.png
new file mode 100644
index 0000000..e7bff71
--- /dev/null
+++ b/docs/_static/images/tf_logo_white.png
Binary files differ
diff --git a/docs/conf.py.in b/docs/conf.py.in
index b32bbdb..f5d9c14 100644
--- a/docs/conf.py.in
+++ b/docs/conf.py.in
@@ -25,10 +25,10 @@
# -- Project information -----------------------------------------------------
-project = 'TF-M'
+project = 'Trusted Firmware-M'
copyright = '2017-2019, ARM CE-OSS'
author = 'ARM CE-OSS'
-title = 'TF-M user Guide'
+title = 'User Guide'
# The short X.Y version
version = '@SPHINXCFG_TFM_VERSION@'
@@ -98,13 +98,16 @@
# further. For a list of options available for each theme, see the
# documentation.
#
-# html_theme_options = {}
+html_theme_options = {'collapse_navigation': False}
#
# 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,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['@TFM_ROOT_DIR@/docs/_static']
+# Set the documentation logo
+html_logo = '@TFM_ROOT_DIR@/docs/_static/images/tf_logo_white.png'
+
# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
#
diff --git a/docs/index.rst.in b/docs/index.rst.in
index 32355cc..dfbc49a 100644
--- a/docs/index.rst.in
+++ b/docs/index.rst.in
@@ -9,55 +9,61 @@
The values between @ characters will be filled in by CMake.
-Welcome to TF-M's documentation!
+Trusted Firmware-M Documentation
================================
.. toctree::
:maxdepth: 2
- :glob:
:hidden:
- docs/contributing
+ docs/lic
docs/dco
- docs/glossary
docs/maintainers
+ docs/glossary
+ docs/contributing
docs/user_guides/tfm_sw_requirement
docs/user_guides/tfm_build_instruction
- docs/coding_guide
docs/user_guides/tfm_user_guide
- docs/user_guides/os_migration_guide_armv8m
docs/user_guides/tfm_integration_guide
+ docs/coding_guide
+
+.. toctree::
+ :maxdepth: 2
+ :caption: Guides Contd
+ :hidden:
+
+ docs/user_guides/os_migration_guide_armv8m
docs/user_guides/tfm_ns_client_identification
docs/user_guides/tfm_secure_boot
docs/user_guides/tfm_secure_irq_handling
.. toctree::
- :maxdepth: 2
:caption: Processes
+ :maxdepth: 2
:glob:
:hidden:
docs/processes/**
.. toctree::
- :maxdepth: 2
:caption: Secure services
+ :maxdepth: 2
:glob:
:hidden:
docs/user_guides/services/*
.. toctree::
- :maxdepth: 2
:caption: Components
+ :maxdepth: 2
:glob:
:hidden:
lib/**
.. toctree::
- :maxdepth: 2
:caption: Target platforms
+ :maxdepth: 2
:glob:
:hidden:
@@ -88,10 +94,11 @@
@REJECTED_DD_LIST@
.. toctree::
- :maxdepth: 2
:caption: Tools
+ :maxdepth: 2
:glob:
:hidden:
+
tools/iat-verifier/*
.. include:: readme.rst
diff --git a/docs/lic.rst b/docs/lic.rst
new file mode 100644
index 0000000..b8d4ce5
--- /dev/null
+++ b/docs/lic.rst
@@ -0,0 +1,10 @@
+
+#######
+License
+#######
+
+.. include:: /license.rst
+
+-----------
+
+*Copyright (c) 2019, Arm Limited. All rights reserved.*