Skip to content

Commit

Permalink
docs: Content for the start page
Browse files Browse the repository at this point in the history
* Adds some cards for documentation highlights
* Adds a needtable to show all needs
* Adds sphinx-design as dependency

Issue-ref: resolves #38
  • Loading branch information
danwos committed Dec 9, 2024
1 parent ea4ea5c commit e3111d3
Show file tree
Hide file tree
Showing 16 changed files with 100 additions and 11 deletions.
2 changes: 2 additions & 0 deletions docs/_assets/css/score.css
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ div.score_banner {
#videowrapper{
position: relative;
overflow: hidden;
margin-bottom: 50px;
}

#fullScreenDiv{
Expand Down Expand Up @@ -199,6 +200,7 @@ div.score_banner {
/* font-size: 4.5em; */
font-size: 8.0cqw;
font-weight: 900;
margin-bottom: 20px;

/* Is somehow cool with image/video title background */
/*animation: fadeIn 3s; */
Expand Down
14 changes: 14 additions & 0 deletions docs/_assets/css/score_design.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* ########################### */
/* SPHINX-DESIGN configs only! */
/* ########################### */

.score-grid .sd-card-header {
background-color: var(--pst-color-secondary) !important;
color: var(--pst-color-text-muted);
font-weight: 900;
font-size: 1.2em;

}
.score-grid .sd-card-body {
text-align: justify;
}
5 changes: 5 additions & 0 deletions docs/_assets/css/score_needs.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,8 @@ html[data-theme="dark"] {
background-color: var(--pst-color-table-row-zebra-high-bg);
}

html[data-theme="dark"] {
--sn-color-need-bg-head: #20242b;
--sn-color-datatable-label: var(--pst-color-text-base)
}

2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = [
"sphinx_design",
"sphinx_needs",
]

Expand All @@ -50,6 +51,7 @@
html_css_files = [
"css/score.css",
"css/score_needs.css",
"css/score_design.css",
]

html_theme_options = {
Expand Down
2 changes: 2 additions & 0 deletions docs/features/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
.. _features:

Features
========

Expand Down
2 changes: 2 additions & 0 deletions docs/features/infrastructure/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
.. _infrastructure_feratures:

################
Infrastructure
################
Expand Down
2 changes: 2 additions & 0 deletions docs/features/integration/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
.. _integration_features:

Integration
###########

Expand Down
64 changes: 58 additions & 6 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ Documentation

</div>

.. toctree::
:maxdepth: 2
:hidden:

requirements/index
features/index
process/index


.. raw:: html

<div id="videowrapper">
Expand All @@ -35,10 +44,53 @@ Documentation
</div>
</div>

.. toctree::
:maxdepth: 2
:glob:
Welcome & Overview
------------------

**Welcome to the Software documentation of the SCORE project.**

If this is the first time you get in touch with SCORE, the `SCORE main page <https://eclipse-score.github.io/>`__
may be a good starting point to receive first insights of the project itself.

.. grid:: 1 1 3 3
:class-container: score-grid

.. grid-item-card::

Requirements
^^^

Analyse :ref:`Stakeholder <stakeholder_requirements>` or :ref:`Tool <tool_requirements>` requirements for
the work with and implementation inside SCORE.

Or get the complete picture on the :ref:`requirements` page.



.. grid-item-card::

Features
^^^
:ref:`Features <features>` are the heart of the SCORE software.

Understand the internal details of :ref:`Infrastructure <infrastructure_feratures>`
or :ref:`Integration <integration_features>` Features.


.. grid-item-card::

Process
^^^
Understand how we work, by reading our :ref:`Process guide <process_description>`.

Or receive tips & tricks for :ref:`Templates <stakeholder_requirements_template>` and
:ref:`Tools <configuration_tool_guidelines>`.

Data warehouse
--------------

Beeing addicted to data and objects? Here are all our Sphinx-Needs objects for a quick deep-dive.

.. needtable::
:columns: id, title, type, status, safety, security

requirements/index
features/index
process/index
2 changes: 1 addition & 1 deletion docs/process/guidelines/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
.. _Configuration_Tool_Guidelines:
.. _configuration_tool_guidelines:

#############################
Configuration/Tool Guidelines
Expand Down
2 changes: 1 addition & 1 deletion docs/process/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
.. _Process_description:
.. _process_description:

Process
=======
Expand Down
2 changes: 1 addition & 1 deletion docs/process/templates/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
.. _Stakeholder_Requirements_Template:
.. _stakeholder_requirements_template:

Stakeholder Requirements Template
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
Sphinx==8.1.3
sphinx-needs==4.1.0
pydata-sphinx-theme==0.16.0
sphinx-design==0.6.1
2 changes: 2 additions & 0 deletions docs/requirements/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
.. _requirements:

Requirements
============

Expand Down
2 changes: 1 addition & 1 deletion docs/requirements/stakeholder/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
.. _Stakeholder_Requirements:
.. _stakeholder_requirements:

Stakeholder Requirements
========================
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements/tool/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
.. _Tool_Requirements:
.. _tool_requirements:

Tool Requirements
=================
Expand Down
5 changes: 5 additions & 0 deletions docs/requirements_lock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -355,12 +355,17 @@ sphinx==8.1.3 \
# -r docs/requirements.txt
# pydata-sphinx-theme
# sphinx-data-viewer
# sphinx-design
# sphinx-needs
# sphinxcontrib-jquery
sphinx-data-viewer==0.1.5 \
--hash=sha256:a7d5e58613562bb745380bfe61ca8b69997998167fd6fa9aea55606c9a4b17e4 \
--hash=sha256:b74b1d304c505c464d07c7b225ed0d84ea02dcc88bc1c49cdad7c2275fbbdad4
# via sphinx-needs
sphinx-design==0.6.1 \
--hash=sha256:b11f37db1a802a183d61b159d9a202314d4d2fe29c163437001324fe2f19549c \
--hash=sha256:b44eea3719386d04d765c1a8257caca2b3e6f8421d7b3a5e742c0fd45f84e632
# via -r docs/requirements.txt
sphinx-needs==4.1.0 \
--hash=sha256:7d40e9c29353d9784f469b2093412846060cda4f3b55127ac58a2692c3381ef9 \
--hash=sha256:8ae21e10515249aaba3dabd7fd66afdedd1160ecbc5816337fb6ed82aca293b7
Expand Down

0 comments on commit e3111d3

Please sign in to comment.