Skip to content

Commit

Permalink
Add verified-state to document status field
Browse files Browse the repository at this point in the history
  • Loading branch information
aschaal committed Oct 14, 2024
1 parent 19c6c0a commit 08d6e3f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Lifecycle Model
---------------

Documents like guidelines or project documentations have a lifecycle.
This extension provides three different states for a Sphinx document:
This extension provides four different states for a Sphinx document:

.. list-table::
:widths: 8 92
Expand All @@ -22,10 +22,15 @@ This extension provides three different states for a Sphinx document:
Draft
- The document was reviewed and is already in a good shape.
Some parts may still be missing but the existing information is reliable.
* - .. rst-class:: header-label document-status-verified

Verified
- The document is complete and trustworthy. No review findings are open.
It was also checked regarding formal aspects.
* - .. rst-class:: header-label document-status-released

Released
- The document is complete and trustworthy. No review findings are open.
- The document is approved and valid.

Usually a document lifecycle also consists of a status like *Under Review*, but if pull requests
are reviewed within a review tool before being merged, this status is not explicitly needed for
Expand All @@ -34,6 +39,8 @@ published Sphinx files.
The status can be changed at any time. But every status change should be reviewed within a review
tool before being merged. This also applies when deleting the document.

A typical lifecycle looks like this:

.. image:: document_status/document_lifecycle.drawio.png
:scale: 100%
:align: center
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dox_style/dox_style/config/_static/breadcrumbs.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
{% set document_status_value = document_status_key.title() %}
{% set document_status_key = document_status_key.replace(' ', '') %}

{% if document_status_key not in ['created', 'draft', 'released'] %}
{% if document_status_key not in ['created', 'draft', 'verified', 'released'] %}
{% set document_status_key = 'created' %}
{% set document_status_value = 'Invalid document status: ' + document_status_value %}
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions dox_style/dox_style/config/_static/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
Note:
- red same as restricted / created
- green same as unrestricted / released
- blue same as confidential
- orange same as highlyconfidential / draft
- blue same as confidential / verified
- green same as unrestricted / released
*/

.green { color:rgb( 33, 215, 38); }
Expand Down
1 change: 1 addition & 0 deletions dox_style/dox_style/config/_static/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@

.document-status-created { color:rgb(253, 13, 27); }
.document-status-draft { color:rgb(253, 149, 38); }
.document-status-verified { color:rgb( 40, 36, 251); }
.document-status-released { color:rgb( 33, 215, 38); }
2 changes: 1 addition & 1 deletion dox_style/dox_style/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.0"
__version__ = "0.2.1"

0 comments on commit 08d6e3f

Please sign in to comment.