Skip to content
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
2 changes: 1 addition & 1 deletion _static/key-meta.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ p.key-meta-union {
Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans",
"Helvetica Neue", sans-serif;
font-size: 1em;
color: #000;
color: var(--text-color);
}
17 changes: 17 additions & 0 deletions _static/light-code.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,20 @@ pre code,
.theme-default-content pre[class*="language-"] code {
color: #24292e;
}

/* Each example is a code block captioned "Example": a small label
tied to its block reads as part of it, where a body text line
competed with the key description. The permalink next to the
caption only adds noise. */
.code-block-caption {
margin: 1rem 0 -0.5rem;
font-size: 0.8em;
font-weight: 600;
letter-spacing: 0.05em;
text-transform: uppercase;
color: #6a737d;
}

.code-block-caption .headerlink {
display: none;
}
25 changes: 25 additions & 0 deletions _static/theme-vars.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* The press theme defines its color variables only under .theme-light
and .theme-dark, classes the page never carries because the dark
mode switch is not rendered. Every rule reading them fell back to
nothing: black text, no borders under the h2 headings and around
the sidebar, and a transparent navbar and phone sidebar with the
page text showing through. Define the light palette on the root. */
:root {
--text-color: #2c3e50;
--background-color: #fff;
--border-color: #eaecef;
--code-bg-color: #ecf4fa;
--arrow-bg-color: #ccc;
--box-shadow-color: #f0f1f2;
--text-color-l10: #3a5169;
--text-color-l20: #476582;
--text-color-l25: #4e6e8e;
--text-color-l40: #6a8bad;
--black: #000;
--dark-grey: #666;
--light-grey: #999;
--white: #fff;
--grey3: #333;
--grey12: #bbb;
--grey14: #eee;
}
2 changes: 1 addition & 1 deletion conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
templates_path = ["_templates"]

html_static_path = ["_static"]
html_css_files = ["sidebar-arrows.css", "light-code.css", "key-meta.css", "heading-scale.css"]
html_css_files = ["theme-vars.css", "sidebar-arrows.css", "light-code.css", "key-meta.css", "heading-scale.css"]

# light-code.css repaints the code blocks light: the tokens need a
# palette for light backgrounds instead of the theme's dark one.
Expand Down
109 changes: 45 additions & 64 deletions docs/standard/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ The version of the specification the file follows: ``"1"``.

string

Example:

.. code:: yaml
.. code-block:: yaml
:caption: Example

name: Firefax

Expand All @@ -65,9 +64,8 @@ The short public name of the software, the one users know it by.

URL

Example:

.. code:: yaml
.. code-block:: yaml
:caption: Example

url: https://example.com/firefax.git

Expand Down Expand Up @@ -116,13 +114,12 @@ Allowed values:

:meta-type:`enumerated string` or :meta-type:`array of strings`

- Values: ``web``, ``windows``, ``mac``, ``linux``, ``ios``,
``android``. When none of them fits, another human readable value
is allowed.

Example:
Values: ``web``, ``windows``, ``mac``, ``linux``, ``ios``,
``android``. When none of them fits, another human readable value
is allowed.

.. code:: yaml
.. code-block:: yaml
:caption: Example

platforms:
- web
Expand Down Expand Up @@ -179,9 +176,8 @@ In the key names below, ``[lang]`` stands for that tag.

string

Example:

.. code:: yaml
.. code-block:: yaml
:caption: Example

description:
en:
Expand All @@ -197,9 +193,8 @@ it differs from :ref:`name <name>`.

string (max 150 chars)

Example:

.. code:: yaml
.. code-block:: yaml
:caption: Example

description:
en:
Expand Down Expand Up @@ -286,11 +281,10 @@ decision makers who would commission it.

:meta-type:`array` of :meta-type:`paths` or :meta-type:`URLs`

- Formats: PNG, JPEG, WebP, AVIF
Formats: PNG, JPEG, WebP, AVIF

Example:

.. code:: yaml
.. code-block:: yaml
:caption: Example

description:
en:
Expand Down Expand Up @@ -320,9 +314,8 @@ same repository as ``publiccode.yml``.

array of URLs

Example:

.. code:: yaml
.. code-block:: yaml
:caption: Example

description:
en:
Expand Down Expand Up @@ -356,9 +349,8 @@ A list of awards won by the software.

string

Example:

.. code:: yaml
.. code-block:: yaml
:caption: Example

legal:
license: EUPL-1.2 OR AGPL-3.0-or-later
Expand All @@ -374,9 +366,8 @@ see the `SPDX License List <https://spdx.org/licenses/>`__.

string

Example:

.. code:: yaml
.. code-block:: yaml
:caption: Example

legal:
mainCopyrightOwner: City of Amsterdam
Expand All @@ -403,9 +394,8 @@ The organisation publishing the software. This section is optional.

string

Example:

.. code:: yaml
.. code-block:: yaml
:caption: Example

organisation:
uri: https://example.org/my-organisation
Expand All @@ -431,9 +421,8 @@ implementation and policies of each consumer.

string

Example:

.. code:: yaml
.. code-block:: yaml
:caption: Example

organisation:
name: My organisation
Expand Down Expand Up @@ -524,9 +513,8 @@ It may still be available in one language.

array of `IETF BCP 47 <https://tools.ietf.org/html/bcp47>`__ language tags

Example:

.. code:: yaml
.. code-block:: yaml
:caption: Example

localisation:
availableLanguages:
Expand All @@ -543,11 +531,10 @@ The languages the software is available in. List at least one.

:meta-type:`path` or :meta-type:`URL`

- Formats: SVG, SVGZ, PNG, JPEG, WebP, AVIF

Example:
Formats: SVG, SVGZ, PNG, JPEG, WebP, AVIF

.. code:: yaml
.. code-block:: yaml
:caption: Example

logo: img/logo.svg

Expand All @@ -564,9 +551,8 @@ same repository as ``publiccode.yml``.

string

Example:

.. code:: yaml
.. code-block:: yaml
:caption: Example

softwareVersion: "1.0"

Expand All @@ -581,9 +567,8 @@ semantic versioning or any other version format.

date

Example:

.. code:: yaml
.. code-block:: yaml
:caption: Example

releaseDate: "2017-04-15"

Expand All @@ -597,9 +582,8 @@ the only allowed ISO8601 format.

URL

Example:

.. code:: yaml
.. code-block:: yaml
:caption: Example

landingURL: https://example.com/firefax

Expand All @@ -615,9 +599,8 @@ graphical installer, this page can also offer it for download.

string

Example:

.. code:: yaml
.. code-block:: yaml
:caption: Example

applicationSuite: MegaProductivitySuite

Expand All @@ -632,7 +615,7 @@ related software.

array of enumerated strings

- Allowed values: see :ref:`categories`
Allowed values: see :ref:`categories`

The categories the software belongs to. Catalogs use them to group
software.
Expand Down Expand Up @@ -660,9 +643,8 @@ Properties of each item:
Any other value MUST be a syntactically valid URI. A value that is
well formed but not otherwise known is accepted as is.

Example:

.. code:: yaml
.. code-block:: yaml
:caption: Example

supports:
- id: alias:gdpr
Expand Down Expand Up @@ -713,7 +695,7 @@ countries the software explicitly targets instead.

array of enumerated strings

- Allowed values: see :ref:`scopes`
Allowed values: see :ref:`scopes`

The sectors the software serves, such as healthcare or education.

Expand Down Expand Up @@ -759,9 +741,8 @@ A link to a public roadmap of the software.

array of strings

Example:

.. code:: yaml
.. code-block:: yaml
:caption: Example

isBasedOn:
- https://github.com/example-org/firefax.git
Expand Down
10 changes: 4 additions & 6 deletions docs/standard/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ Complex versioning

The version keys combine to describe a compatibility range.

*Ex. 1*

.. code:: yaml
.. code-block:: yaml
:caption: Example 1

- name: PostgreSQL
version: "16"
Expand All @@ -74,9 +73,8 @@ The version keys combine to describe a compatibility range.
This snippet marks an optional dependency on PostgreSQL 16, with any
of its patch releases.

*Ex. 2*

.. code:: yaml
.. code-block:: yaml
:caption: Example 2

- name: MySQL
versionMin: "8.0"
Expand Down
Loading