Skip to content

Commit 53e1860

Browse files
committed
Complete markdown conversion
Signed-off-by: Philippe Ombredanne <pombredanne@aboutcode.org>
1 parent 3e04d9f commit 53e1860

9 files changed

Lines changed: 31 additions & 37 deletions

File tree

docs/how-to-build.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
How to build `purl` string from its components
2-
==============================================
1+
## How to build a `purl` string from its components
32

43
Building a `purl` ASCII string works from left to right, from `type` to
54
`subpath`.

docs/how-to-parse.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
How to parse a `purl` string in its components
2-
==============================================
1+
## How to parse a `purl` string into its components
32

43
Parsing a `purl` ASCII string into its components works from right to left,
54
from `subpath` to `type`.

docs/known-qualifiers.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Known `qualifiers` key/value pairs
2-
==================================
1+
## Known `purl` `qualifiers` key/value pairs
32

43
Note: Do not abuse `qualifiers`: it can be tempting to use many qualifier
54
keys but their usage should be limited to the bare minimum for proper package
@@ -13,7 +12,7 @@ With this warning, the known `key` and `value` defined here are valid for use in
1312
all package types:
1413

1514
- `vers` allows the specification of a version range.
16-
The value MUST adhere to the [Version Range Specification](VERSION-RANGE-SPEC.rst).
15+
The value MUST adhere to the `Version Range Specification`.
1716
This qualifier is mutually exclusive with the `version` component.
1817
For example:
1918

@@ -41,6 +40,6 @@ all package types:
4140
comma-separated list. Each item in the `value` is in form of
4241
`lowercase_algorithm:hex_encoded_lowercase_value` such as
4342
`sha1:ad9503c3e994a4f611a4892f2e67ac82df727086`.
44-
For example (with checksums truncated for brevity) :
43+
For example (with checksums truncated for brevity):
4544

4645
checksum=sha1:ad9503c3e994a4f,sha256:41bf9088b3a1e6c1ef1d

docs/purl-spec-toc.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Package URL specification v1.0.X
2-
================================
1+
# Package-URL Specification
32

43
The Package URL core specification defines a versioned and formalized format,
54
syntax, and rules used to represent and validate `purl`.
@@ -11,5 +10,5 @@ A `purl` is a URL string used to identify and locate a software package in a
1110
mostly universal and uniform way across programming languages, package managers,
1211
packaging conventions, tools, APIs and databases.
1312

14-
Such a package URL is useful to reliably reference the same software package
13+
A `purl` is useful to reliably reference the same software package
1514
using a simple and expressive syntax and conventions based on familiar URLs.

docs/standard/characters-and-encoding.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Permitted characters
2-
====================
1+
## Permitted characters
32

43
A canonical `purl` is composed of these permitted ASCII characters:
54

@@ -11,8 +10,7 @@ A canonical `purl` is composed of these permitted ASCII characters:
1110
question mark '?', equal sign '=', ampersand '&' and pound sign '#').
1211

1312

14-
`purl` separators
15-
=================
13+
## Separators
1614

1715
This is how each of the Separator Characters is used:
1816

@@ -27,16 +25,15 @@ This is how each of the Separator Characters is used:
2725
`key=value` pair)
2826
- '#' (number sign) is the separator before `subpath`
2927

30-
Character encoding
31-
==================
28+
## Character encoding
3229

3330
- In the "Rules for each `purl` component" section, each component
3431
defines when and how to apply percent-encoding and decoding to its content.
3532
- When percent-encoding is required by a component definition, the component
3633
string MUST first be encoded as UTF-8.
3734
- In the component string, each "data octet" MUST be replaced by the
3835
percent-encoded "character triplet" applying the percent-encoding mechanism
39-
defined in RFC 3986 section 2.1 (<https://datatracker.ietf.org/doc/html/rfc3986#section-2.1>),
36+
defined in [RFC 3986 section 2.1](https://datatracker.ietf.org/doc/html/rfc3986#section-2.1),
4037
including the RFC definition of "data octet" and "character triplet",
4138
and using these definitions for RFC's "allowed set" and "delimiters":
4239

@@ -56,8 +53,7 @@ Character encoding
5653
- With the exception of the percent-encoding mechanism, the rules regarding
5754
percent-encoding are defined by this specification alone.
5855

59-
Case folding
60-
============
56+
## Case folding
6157

6258
References to "lowercase" in this specification refer to the **culture-invariant**
6359
full case mapping defined in

docs/standard/components.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
Rules for each `purl` component
2-
===============================
1+
## Rules for each `purl` component
32

43
A `purl` string is an ASCII URL string composed of seven components.
54

65
Except as expressly stated otherwise in this section, each component:
76

8-
- MAY be composed of any of the characters defined in the "[Permitted characters]()" section
9-
- MUST be encoded as defined in the "[Character encoding]()" section
7+
- MAY be composed of any of the characters defined in the "Permitted characters" section
8+
- MUST be encoded as defined in the "Character encoding" section
109

11-
The "lowercase" rules are defined in the "[Case folding]()" section.
10+
The "lowercase" rules are defined in the "Case folding" section.
1211

1312
The rules for each component are:
1413

docs/standard/references.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
Definitions
2-
===========
1+
# 3 Normative References
32

4-
ASCII See, e.g.,
3+
The following referenced documents are indispensable for the application of this document.
4+
For dated references, only the edition cited applies. For undated references, the latest
5+
edition of the referenced document (including any amendments) applies.
56

6-
- American National Standards Institute, "Coded Character Set -- 7-bit
7-
American Standard Code for Information Interchange", ANSI X3.4, 1986.
8-
- <https://en.wikipedia.org/wiki/ASCII>.
7+
ASCII, *American National Standards Institute, "Coded Character Set -- 7-bit American
8+
Standard Code for Information Interchange", ANSI X3.4, 1986*
9+
https://en.wikipedia.org/wiki/ASCII
10+
11+
RFC 3986, ​*Uniform Resource Identifier (URI): Generic Syntax*​.
12+
[https://datatracker.ietf.org/doc/html/rfc3986](https://datatracker.ietf.org/doc/html/rfc3986)

docs/standard/summary.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## What is a `purl`?
2+
13
`purl` stands for **package URL**.
24

35
A `purl` is a URL composed of seven components:
@@ -32,8 +34,7 @@ A `purl` must NOT contain a URL Authority i.e. there is no support for
3234
sometimes look like a `host` but its interpretation is specific to a `type`.
3335

3436

35-
Some `purl` examples
36-
====================
37+
## Some `purl` examples
3738

3839
pkg:bitbucket/birkenfeld/pygments-main@244fd47e07d1014f0aed9c
3940
pkg:deb/debian/curl@7.50.3-1?arch=i386&distro=jessie
@@ -47,8 +48,7 @@ Some `purl` examples
4748
pkg:rpm/fedora/curl@7.50.3-1.fc25?arch=i386&distro=fedora-25
4849

4950

50-
A `purl` is a URL
51-
=================
51+
## A `purl` is a URL
5252

5353
- A `purl` is a valid URL and URI that conforms to the URL definitions or
5454
specifications at:

docs/tests.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Tests
2-
=====
1+
## Tests
32

43
To support the language-neutral testing of `purl` implementations, a test suite
54
is provided as JSON document named `test-suite-data.json`. This JSON document

0 commit comments

Comments
 (0)