Skip to content

Commit 1bcb513

Browse files
authored
Merge pull request #2 from mozilla/jh/4720/initial-links-tweaks
2 parents 906b93a + c000056 commit 1bcb513

20 files changed

+240
-404
lines changed

docs/data-scientists-root.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
id: data-scientists-root
3+
title: Root Page
4+
slug: /data-scientists
5+
---
6+
7+
TODO: Update this page introduce the Data Scientists section of the docs. Or, delete it.

docs/desktop-engineers-root.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
id: desktop-engineers-root
3+
title: Root Page
4+
slug: /desktop-engineers
5+
---
6+
7+
TODO: Update this page introduce the Desktop Engineers section of the docs. Or, delete it.

docs/doc1.md

Lines changed: 0 additions & 203 deletions
This file was deleted.

docs/doc2.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/doc3.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/experiment-owners-root.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
id: experiment-owners-root
3+
title: Root Page
4+
slug: /experiment-owners
5+
---
6+
7+
TODO: Update this page introduce the Experiment Owners section of the docs. Or, delete it.

docs/fenix-engineers-root.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
id: fenix-engineers-root
3+
title: Root Page
4+
slug: /fenix-engineers
5+
---
6+
7+
TODO: Update this page introduce the Fenix Engineers section of the docs. Or, delete it.

docs/mdx.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/welcome.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
id: welcome
3+
title: Welcome
4+
slug: /
5+
---
6+
7+
Welcome to the [Experimenter](https://github.com/mozilla/experimenter) documentation hub! The goal of this website is to serve as a central location for documenting and linking to documentation of all things Experimenter, Nimbus, Jetstream, and related SDKs.
8+
9+
You will find documentation pages linked in the sidebar, and all external links are denoted with an external icon.
10+
11+
This website is built using [Docusaurus](https://v2.docusaurus.io/).
12+
13+
## Important links
14+
15+
In addition to the links in the sidebar here are some important links to have on hand:
16+
17+
| Link | | |
18+
| --------------- | ------------------------------------- | ---------------------------- |
19+
| Legacy Home | [Production][legacy_home_prod] | [Staging][legacy_home_stage] |
20+
| Nimbus Home | [Production][nimbus_home_prod] | [Staging][nimbus_home_stage] |
21+
| Remote Settings | [Production][rs_prod] | [Staging][rs_stage] |
22+
| Storybook | [Storybook Directory][storybook_prod] | |
23+
24+
[legacy_home_prod]: https://experimenter.services.mozilla.com/
25+
[legacy_home_stage]: https://stage.experimenter.nonprod.dataops.mozgcp.net/
26+
[nimbus_home_prod]: https://experimenter.services.mozilla.com/nimbus
27+
[nimbus_home_stage]: https://stage.experimenter.nonprod.dataops.mozgcp.net/nimbus
28+
[storybook_prod]: https://storage.googleapis.com/mozilla-storybooks-experimenter/index.html
29+
[rs_prod]: https://settings-writer.prod.mozaws.net/v1/admin/
30+
[rs_stage]: https://settings-writer.stage.mozaws.net/v1/admin/
31+
32+
## Contributing
33+
34+
This documentation is managed in the [mozilla/experimenter-docs](https://github.com/mozilla/experimenter-docs) repository. Content is written in Markdown files using [GitHub-flavored Markdown syntax](https://github.github.com/gfm/) and compiled into static pages. Refer to Docusaurus [Markdown features](https://v2.docusaurus.io/docs/markdown-features) for more technical information about these Markdown pages.
35+
36+
In order to protect the main deploy branch we are requiring all content changes (editing existing pages and creating new pages) to be reviewed and merged via Pull Request. **All changes merged into the `main` branch will automatically be deployed.**
37+
38+
### Creating new pages
39+
40+
[Click here](https://github.com/mozilla/experimenter-docs/new/main/docs) to start creating a new Markdown file in the repository. Once you've written your content you can can click "Commit Changes" to create a new branch and be presented with the option to open a Pull Request.
41+
42+
:::important
43+
44+
One caveat to adding new pages is that if you want them to show up in the sidebar they must be added to the [sidebars.js](https://github.com/mozilla/experimenter-docs/blob/main/sidebars.js) file. If you are adding a new file using the GitHub UI you must first make sure you have changed to the branch you just created with your new page commit. Then you can use the UI to add your new page to the sidebar and add that commit to the Pull Request.
45+
46+
:::
47+
48+
### Editing pages
49+
50+
You can edit any page in these docs by clicking the "**Edit this page**" link near the bottom. This will take you to the GitHub markdown file for the page, where you can make changes to the content. Once you've finished updating the content you can can click "Commit Changes" to create a new branch and be presented with the option to open a Pull Request.

docusaurus.config.js

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
title: "Experimenter Docs",
3-
tagline: "Documentation hub for Experimenter/Nimbus",
3+
tagline: "Documentation hub for Experimenter",
44
url: "https://github.com/mozilla/experimenter-docs",
55
baseUrl: "/experimenter-docs/",
66
onBrokenLinks: "throw",
@@ -9,39 +9,55 @@ module.exports = {
99
organizationName: "mozilla",
1010
projectName: "experimenter-docs",
1111
themeConfig: {
12+
hideableSidebar: true,
13+
colorMode: {
14+
defaultMode: 'light',
15+
disableSwitch: true,
16+
respectPrefersColorScheme: true,
17+
},
1218
navbar: {
1319
title: "Experimenter Docs",
1420
logo: {
1521
alt: "Experimenter Logo",
1622
src: "img/logo.svg",
23+
srcDark: "img/logo-dark.svg",
1724
},
1825
items: [
1926
{
20-
to: "docs/",
21-
activeBasePath: "docs",
22-
label: "Docs",
23-
position: "left",
27+
href: "https://experimenter.services.mozilla.com/nimbus/",
28+
label: "Nimbus",
29+
position: "right"
30+
},
31+
{
32+
href: "https://mana.mozilla.org/wiki/display/FJT/Project+Nimbus",
33+
label: "Mana",
34+
position: "right"
2435
},
2536
{
2637
href: "https://github.com/mozilla/experimenter-docs",
27-
label: "GitHub",
28-
position: "right",
38+
position: 'right',
39+
className: 'header-github-link',
40+
'aria-label': 'GitHub repository',
2941
},
3042
],
3143
},
3244
footer: {
33-
style: "dark",
3445
copyright: `Copyright © ${new Date().getFullYear()} Mozilla Corporation`,
3546
},
47+
algolia: {
48+
apiKey: 'cce683dfea9772207408c2b161a22641',
49+
indexName: 'experimenter',
50+
},
3651
},
3752
presets: [
3853
[
3954
"@docusaurus/preset-classic",
4055
{
4156
docs: {
57+
routeBasePath: '/',
4258
sidebarPath: require.resolve("./sidebars.js"),
4359
editUrl:
44-
"https://github.com/mozilla/experimenter-docs/edit/main/website/",
60+
"https://github.com/mozilla/experimenter-docs/edit/main/",
4561
},
4662
theme: {
4763
customCss: require.resolve("./src/css/custom.css"),

0 commit comments

Comments
 (0)