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
7 changes: 7 additions & 0 deletions docs/data-scientists-root.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
id: data-scientists-root
title: Root Page
slug: /data-scientists
---

TODO: Update this page introduce the Data Scientists section of the docs. Or, delete it.
7 changes: 7 additions & 0 deletions docs/desktop-engineers-root.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
id: desktop-engineers-root
title: Root Page
slug: /desktop-engineers
---

TODO: Update this page introduce the Desktop Engineers section of the docs. Or, delete it.
203 changes: 0 additions & 203 deletions docs/doc1.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/doc2.md

This file was deleted.

14 changes: 0 additions & 14 deletions docs/doc3.md

This file was deleted.

7 changes: 7 additions & 0 deletions docs/experiment-owners-root.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
id: experiment-owners-root
title: Root Page
slug: /experiment-owners
---

TODO: Update this page introduce the Experiment Owners section of the docs. Or, delete it.
7 changes: 7 additions & 0 deletions docs/fenix-engineers-root.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
id: fenix-engineers-root
title: Root Page
slug: /fenix-engineers
---

TODO: Update this page introduce the Fenix Engineers section of the docs. Or, delete it.
17 changes: 0 additions & 17 deletions docs/mdx.md

This file was deleted.

50 changes: 50 additions & 0 deletions docs/welcome.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
id: welcome
title: Welcome
slug: /
---

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.

You will find documentation pages linked in the sidebar, and all external links are denoted with an external icon.

This website is built using [Docusaurus](https://v2.docusaurus.io/).

## Important links

In addition to the links in the sidebar here are some important links to have on hand:

| Link | | |
| --------------- | ------------------------------------- | ---------------------------- |
| Legacy Home | [Production][legacy_home_prod] | [Staging][legacy_home_stage] |
| Nimbus Home | [Production][nimbus_home_prod] | [Staging][nimbus_home_stage] |
| Remote Settings | [Production][rs_prod] | [Staging][rs_stage] |
| Storybook | [Storybook Directory][storybook_prod] | |

[legacy_home_prod]: https://experimenter.services.mozilla.com/
[legacy_home_stage]: https://stage.experimenter.nonprod.dataops.mozgcp.net/
[nimbus_home_prod]: https://experimenter.services.mozilla.com/nimbus
[nimbus_home_stage]: https://stage.experimenter.nonprod.dataops.mozgcp.net/nimbus
[storybook_prod]: https://storage.googleapis.com/mozilla-storybooks-experimenter/index.html
[rs_prod]: https://settings-writer.prod.mozaws.net/v1/admin/
[rs_stage]: https://settings-writer.stage.mozaws.net/v1/admin/

## Contributing

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.

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.**

### Creating new pages

[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.

:::important

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wellllll... I could have sworn Docusaurus did this automagically. ☹️ I'll figure this out when working on the maintenance workflow docs (you've already written like more than half of it so thanks, ha).


:::

### Editing pages

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.
34 changes: 25 additions & 9 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
title: "Experimenter Docs",
tagline: "Documentation hub for Experimenter/Nimbus",
tagline: "Documentation hub for Experimenter",
url: "https://github.com/mozilla/experimenter-docs",
baseUrl: "/experimenter-docs/",
onBrokenLinks: "throw",
Expand All @@ -9,39 +9,55 @@ module.exports = {
organizationName: "mozilla",
projectName: "experimenter-docs",
themeConfig: {
hideableSidebar: true,
colorMode: {
defaultMode: 'light',
disableSwitch: true,
respectPrefersColorScheme: true,
},
navbar: {
title: "Experimenter Docs",
logo: {
alt: "Experimenter Logo",
src: "img/logo.svg",
srcDark: "img/logo-dark.svg",
},
items: [
{
to: "docs/",
activeBasePath: "docs",
label: "Docs",
position: "left",
href: "https://experimenter.services.mozilla.com/nimbus/",
label: "Nimbus",
position: "right"
},
{
href: "https://mana.mozilla.org/wiki/display/FJT/Project+Nimbus",
label: "Mana",
position: "right"
},
{
href: "https://github.com/mozilla/experimenter-docs",
label: "GitHub",
position: "right",
position: 'right',
className: 'header-github-link',
'aria-label': 'GitHub repository',
},
],
},
footer: {
style: "dark",
copyright: `Copyright © ${new Date().getFullYear()} Mozilla Corporation`,
},
algolia: {
apiKey: 'cce683dfea9772207408c2b161a22641',
indexName: 'experimenter',
},
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
routeBasePath: '/',
sidebarPath: require.resolve("./sidebars.js"),
editUrl:
"https://github.com/mozilla/experimenter-docs/edit/main/website/",
"https://github.com/mozilla/experimenter-docs/edit/main/",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
Expand Down
Loading