Skip to content

Commit

Permalink
Merge pull request #199 from lsst-sqre/frossie-patch-1
Browse files Browse the repository at this point in the history
Clarify optional nature of status
  • Loading branch information
jonathansick authored Nov 8, 2023
2 parents cc553cf + 7d8121d commit 59b30d3
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions docs/technotes/document-status.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Technotes are continuously updated on the web as you add commits and merge pull
Your "drafts" are visible to the rest of the observatory, and even the public, to speed up collaboration and provide transparency.
You can communicate the status of the document by setting metadata in :file:`technote.toml`.
For example, you can specify that the technote is an incomplete draft, or that the technote is deprecated and is now replaced by another set of documents.
This configuration is optional; the default status is "stable" when the ``[technote.status]`` table is omitted.

Setting "draft" status
======================
Expand All @@ -15,8 +16,8 @@ If the technote is incomplete and being actively written, you can set the status
.. code-block:: toml
:caption: technote.toml
[technote.state]
status = "draft"
[technote.status]
state = "draft"
Setting "stable" status
=======================
Expand All @@ -26,8 +27,8 @@ If the technote is complete, accurate and no longer being actively worked upon,
.. code-block:: toml
:caption: technote.toml
[technote.state]
status = "stable"
[technote.status]
state = "stable"
This is the default state if one is not specified in :file:`technote.toml`.

Expand All @@ -39,23 +40,35 @@ If your technote is no longer accurate or relevant, you can mark it as deprecate
.. code-block:: toml
:caption: technote.toml
[technote.state]
status = "deprecated"
[technote.status]
state = "deprecated"
note = "This technote is deprecated because [...]"
If the technote has been replaced by one or more other documents, you can link to them with a ``supersceding_urls`` array:

.. code-block:: toml
:caption: technote.toml
[technote.state]
status = "deprecated"
[technote.status]
state = "deprecated"
note = "This technote is deprecated because [...]"
[[technote.state.supersceding_urls]]
[[technote.status.supersceding_urls]]
title = "New technote"
url = "https://example.lsst.io/"
[[technote.state.supersceding_urls]]
[[technote.status.supersceding_urls]]
title = "Another document"
url = "https://example-two.lsst.io/"
Setting "other" status
======================

If none of the above states are appropriate, you can specify an "other" state and explain with a "note"

.. code-block:: toml
:caption: technote.toml
[technote.status]
state = "other"
note = "Explaination of status..."

0 comments on commit 59b30d3

Please sign in to comment.