Skip to content

docs: restructure general guidelines #502

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

Merged
merged 1 commit into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 3 additions & 4 deletions docs/guidance/index.rst → docs/contribute/ci/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

Guidance
========
CI
##

.. toctree::
:maxdepth: 2
:maxdepth: 1

docs-as-code
publishing-gh-pages
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

###############################
Contribution Request Guideline
###############################

Contribution Request Guideline
##############################

.. gd_guidl:: Contribution Request Guideline
:id: gd_guidl__contr_request_guideline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,10 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

.. _process_guidance:

#########
Guidance
#########
Contribution Request
####################

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

git/index.rst
branch/index.rst
feature_flags/index.rst
general/index.rst
contribution_request/index.rst
contribution_request
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ To activate this feature, use the following feature flag:

.. note::
The feature flag must reflect the feature name in snake_case. Further, it is prepended with ``experimental_``, as
long as the feature is not yet stable. See :doc:`/process/guidance/feature_flags/index` for more information.
long as the feature is not yet stable. See :ref:`feature_flags` for more information.


Abstract
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@

.. _contribution_templates:

#######################
Contribution Templates
#######################
Contribution Templates
######################

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

feature_request_template.rst
20 changes: 20 additions & 0 deletions docs/contribute/development/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
..
# *******************************************************************************
# Copyright (c) 2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

Development
###########

.. toctree::
:maxdepth: 1

Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

Guidance: Docs-As-Code
======================
Docs-As-Code
============

Introduction
------------
Expand Down
21 changes: 21 additions & 0 deletions docs/contribute/documentation/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
..
# *******************************************************************************
# Copyright (c) 2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

Documentation
#############

.. toctree::
:maxdepth: 1

docs-as-code
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

.. _feature_flags:

Feature Flags
=============

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,51 +12,10 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

General
=======

.. _naming_convention_files:

Naming Conventions of Files
---------------------------

The overall naming convention is to use snake case for all files and folders (all files are named lowercase and spaces are replaced by underscores).

.. _naming_convention_needs:

Naming Convention for UIDs
--------------------------

The naming convention for the UIDs of **all** elements shall be defined as follows:

* It should not exceed 30 characters
* It shall show a meaningful name
* It shall only consist of lowercase, digits and underscores

For the naming of the UIDs also following convention shall be applied:

* It shall consist of 3 parts separated by double underscore
* | prefix
| (defined in the Metamodel)
* | structural element
| (e.g. abbreviation for the feature / subfeature)
* | keyword (s)
| (keyword(s) referring the the description, separated by underscore)

As examples:

* feat_req__ipc__e2e_protection
* comp_req__kvs__storage

Only for **process UIDs** the structural element is optional:

* gd_temp__review
* gd_req__req__structure

.. _Platform_Folder_Structure:

Folder Structure of Platform Repository
---------------------------------------
=======================================

The following shows the folder structure of the platform repository (ordered alphabetically). The ordering of the documentation in the rendered documentation
can be in a different order.
Expand Down Expand Up @@ -138,7 +97,3 @@ can be in a different order.
registry/ -> infrastructure configuration

README.md -> Entrypoint of the repository.

.. toctree::
:maxdepth: 1
:glob:
File renamed without changes.
24 changes: 24 additions & 0 deletions docs/contribute/general/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
..
# *******************************************************************************
# Copyright (c) 2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

General
#######

.. toctree::
:maxdepth: 1

naming
git
folder
feature_flags
75 changes: 75 additions & 0 deletions docs/contribute/general/naming.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
..
# *******************************************************************************
# Copyright (c) 2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

Naming Conventions
==================

.. _naming_convention_files:

Naming Conventions of Files
---------------------------

The overall naming convention is to use snake case for all files and folders (all files are named lowercase and spaces are replaced by underscores).

.. _naming_convention_needs:

Naming Convention for UIDs
--------------------------

The naming convention for the UIDs of **all** elements shall be defined as follows:

* It should not exceed 30 characters
* It shall show a meaningful name
* It shall only consist of lowercase, digits and underscores

For the naming of the UIDs also following convention shall be applied:

* It shall consist of 3 parts separated by double underscore
* | prefix
| (defined in the Metamodel)
* | structural element
| (e.g. abbreviation for the feature / subfeature)
* | keyword (s)
| (keyword(s) referring the the description, separated by underscore)

As examples:

* feat_req__ipc__e2e_protection
* comp_req__kvs__storage

Only for **process UIDs** the structural element is optional:

* gd_temp__review
* gd_req__req__structure

.. _branch_naming:

Naming convention for git branches
----------------------------------

In order to keep an overview which branch belongs to whom the branch
name also should be descriptive. The following rules shall apply:

#. The branch name shall start with your github username. This will make
it easier for everybody to identify the owner of the branch.
#. Branch names must be lower case.
#. Concatenation is done by underscores _.

An example could look like this:

Mustermann, GitHub Name: maximuster

.. code::

maximuster_my_awesome_branch_name
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,17 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

##########
Branches
##########

.. _branch_naming:

*******************
Naming Convention
*******************
.. _contribute:

In order to keep an overview which branch belongs to whom the branch
name also should be descriptive. The following rules shall apply:

#. The branch name shall start with your github username. This will make
it easier for everybody to identify the owner of the branch.
#. Branch names must be lower case.
#. Concatenation is done by underscores _.

An example could look like this:
Contribute
##########

Mustermann, GitHub Name: maximuster
.. toctree::
:maxdepth: 2

.. code::
general/index
contribution_request/index
documentation/index
development/index
ci/index

maximuster_my_awesome_branch_name
6 changes: 3 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Project structure and processes
^^^
Understand how we work, by reading our :ref:`Process description <process_description>`.
And receive tips & tricks for our used tool stack by reading the
:ref:`Guidance <process_guidance>`.
:ref:`contribute`.

.. grid-item-card::

Expand All @@ -131,11 +131,11 @@ Project structure and processes
.. dropdown:: Click to see the complete sitemap

.. toctree::
:maxdepth: 3
:maxdepth: 1

requirements/index
features/index
guidance/index
contribute/index
Releases <score_releases/index.rst>
process/index
PMP <platform_management_plan/index.rst>
Expand Down
Loading