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
28 changes: 28 additions & 0 deletions _static/heading-scale.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/* The press theme sizes h4 at 1rem, below the 1.1rem body text, so
subkey headings look smaller than their own content. Keep them
between body text and h3. */
h4,
.theme-default-content h4 {
font-size: 1.15em;
}

h5,
.theme-default-content h5 {
font-size: 1.05em;
}

/* A light rule above each key heading separates one key from the
previous one's content. */
.theme-default-content h3,
h3 {
border-top: 1px solid #eaecef;
padding-top: 1.6rem;
margin-top: 2rem;
}

.theme-default-content h4,
h4 {
border-top: 1px solid #f0f2f4;
padding-top: 1.2rem;
margin-top: 1.6rem;
}
28 changes: 28 additions & 0 deletions _static/key-meta.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/* The type of each key renders as a chip under the heading, in the
same look as inline code, instead of a Type bullet. */
p.key-meta,
p.key-meta-union .meta-type {
display: inline-block;
background-color: #ecf4fa;
border-radius: 4px;
padding: 0.15rem 0.5rem;
font-family: "Source Code Pro", monospace;
font-size: 0.85em;
color: #476582;
}

p.key-meta {
margin: -0.3rem 0 1rem;
}

/* A key accepting several types shows one chip per type, with the
"or" between them read as prose. */
p.key-meta-union {
background: none;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans",
"Helvetica Neue", sans-serif;
font-size: 1em;
color: #000;
}
2 changes: 1 addition & 1 deletion conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
templates_path = ["_templates"]

html_static_path = ["_static"]
html_css_files = ["sidebar-arrows.css", "light-code.css"]
html_css_files = ["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
24 changes: 12 additions & 12 deletions docs/standard/forks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Parsers
~~~~~~~

Parsers **SHOULD** identify a technical fork by noticing that the
top-level ``url`` key does not point to the repository in which the
top-level :ref:`url <url>` key does not point to the repository in which the
``publiccode.yml`` is found.

Parsers **MIGHT** identify a technical fork also through metadata that
Expand All @@ -41,7 +41,7 @@ Authors
~~~~~~~

Authors of technical forks **SHOULD NOT** modify ``publiccode.yml`` in
any way. Specifically, they **MUST NOT** modify the top-level ``url``
any way. Specifically, they **MUST NOT** modify the top-level :ref:`url <url>`
key that **MUST** continue pointing to the original repository.

There is no explicit key to mark a fork as a technical fork. This is a
Expand Down Expand Up @@ -76,8 +76,8 @@ Parsers
~~~~~~~

Parsers **SHOULD** identify a variant by noticing that the top-level
``url`` key matches the repository in which the ``publiccode.yml`` is
found, **AND** a top-level ``isBasedOn`` exists and points to a
:ref:`url <url>` key matches the repository in which the ``publiccode.yml`` is
found, **AND** a top-level :ref:`isBasedOn <is-based-on>` exists and points to a
different repository.

Parsers should expect and analyze other differences in
Expand All @@ -93,14 +93,14 @@ Authors
Authors that are willing to publish a fork as a variant **MUST** at
least:

- Add a key ``isBasedOn`` pointing to one or more upstream repositories
from which this variant is derived.
- Change the value for ``url`` to point to the repository holding the
variant.
- Change the value for ``organisation/name`` to refer to themselves
(the authors of the variant).
- Revisit the ``maintenance`` section to refer to the maintenance
status of the variant.
- Add a key :ref:`isBasedOn <is-based-on>` pointing to one or more
upstream repositories from which this variant is derived.
- Change the value for :ref:`url <url>` to point to the repository
holding the variant.
- Change the value for :ref:`organisation/name <organisation-name>`
to refer to themselves (the authors of the variant).
- Revisit the :ref:`maintenance <maintenance>` section to refer to
the maintenance status of the variant.

Moreover, authors **SHOULD** evaluate the following changes:

Expand Down
Loading
Loading