Skip to content

Commit 22d15c6

Browse files
authored
feat: Add a basic changelog mechanism (#84)
1 parent 2f1b570 commit 22d15c6

4 files changed

Lines changed: 92 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,35 @@
11
# enterprise-firefox-admin-docs
22

3-
## 0.0.1
3+
<!-- markdownlint-disable MD024 -->
44

5-
### Additions
5+
## Unreleased
66

7-
- Initial commit
7+
### fx-150.0.0
8+
9+
#### Added
10+
11+
- `SitePolicies`: Defines policies scoped to specific sites. ([#82](https://github.com/mozilla/enterprise-admin-reference/pull/82))
12+
13+
### esr-153.0.0
14+
15+
#### Added
16+
17+
- `SitePolicies`: Defines policies scoped to specific sites. ([#82](https://github.com/mozilla/enterprise-admin-reference/pull/82))
18+
19+
### ent-150.0.0
20+
21+
#### Added
22+
23+
- Sync policy [#70](https://github.com/mozilla/enterprise-admin-reference/pull/70)
24+
25+
## fx-148.0.0
26+
27+
### Added
28+
29+
- `DisableRemoteImprovements`: Prevent Firefox from applying performance, stability, and feature changes between updates. ([#64](https://github.com/mozilla/enterprise-admin-reference/pull/64))
30+
31+
## fx-119.0.0
32+
33+
### Added
34+
35+
- `DisableAccounts`: Disable account-based services, including sync. ([#68](https://github.com/mozilla/enterprise-admin-reference/pull/68))

CONTRIBUTING.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Contributing
2+
3+
## Changelog
4+
5+
The changelog is based on **Firefox versions**, not documentation versions.
6+
If something changes, it should be recorded under the software version where an admin would expect to see those changes.
7+
8+
### Version prefixes
9+
10+
Each version heading must include a release channel prefix so it's clear which release train it belongs to:
11+
12+
| Prefix | Channel | Example |
13+
| ------ | ------------------ | ---------------- |
14+
| `fx-` | Firefox | `## fx-119.0.0` |
15+
| `esr-` | Firefox ESR | `## esr-128.0.0` |
16+
| `ent-` | Firefox Enterprise | `## ent-150.0.0` |
17+
18+
An `## Unreleased` section at the top of the file can be used for upcoming changes.
19+
When a version ships, the unreleased entries can be moved out of the `## Unreleased` section as level 2 headings to be published:
20+
21+
### Entries
22+
23+
Changelog entries are user-facing to Firefox admins, meaning any changes specific to the docs site itself are mostly irrelevant.
24+
Use the following sections per release and omit any that don't apply:
25+
26+
- `### Added`: new policies or functionality relating to the policy engine
27+
- `### Changed`: anything that modifies policy behavior or defaults
28+
- `### Fixed`: bug fixes, or corrections to documentation
29+
- `### Removed`: removed policies or deprecated functionality
30+
31+
### Example
32+
33+
The following entry is for Firefox release version 119:
34+
35+
```md
36+
## fx-119.0.0
37+
38+
### Added
39+
40+
- `DisableAccounts` policy: Disable account-based services, including sync. ([#68](https://github.com/mozilla/enterprise-admin-reference/pull/68))
41+
```

astro.config.mjs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import starlightLinksValidator from "starlight-links-validator";
77

88
export const locales = {
99
root: { label: "English", lang: "en" },
10-
// de: { label: "Deutsch", lang: "de" },
1110
// fr: { label: "Français", lang: "fr" },
1211
};
1312

@@ -61,6 +60,18 @@ export default defineConfig({
6160
label: "Resources",
6261
items: [{ label: "Support", slug: "support" }],
6362
},
63+
{
64+
label: "Changelog",
65+
items: [
66+
...makeChangelogsSidebarLinks([
67+
{
68+
type: "recent",
69+
base: "changelog",
70+
count: 10,
71+
},
72+
]),
73+
],
74+
},
6475
],
6576
social: [
6677
{

src/content.config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,16 @@ export const collections = {
1515
changelogs: defineCollection({
1616
loader: changelogsLoader([
1717
{
18-
provider: "changeset",
18+
provider: "keep-a-changelog",
1919
base: "changelog",
2020
changelog: "CHANGELOG.md",
21+
// see https://starlight-changelogs.netlify.app/providers/keep-a-changelog/#process
22+
process: ({ title }) => {
23+
if (title.startsWith("ent-")) return `Firefox Enterprise ${title.slice(4)}`;
24+
if (title.startsWith("esr-")) return `Firefox ESR ${title.slice(4)}`;
25+
if (title.startsWith("fx-")) return `Firefox ${title.slice(3)}`;
26+
return title;
27+
},
2128
},
2229
]),
2330
}),

0 commit comments

Comments
 (0)