This repository contains the source code for the a.ml website developed in React, including the AML and AMF documentation
- Node.js version >= 14.8.0 or above
-
Pull the code locally:
$ git clone https://github.com/aml-org/a-ml
-
In the root folder run
npm run preview
to preview the website live:$ npm run preview
-
The server should be up and the website available in http://localhost:3000/.
-
If you want to build the static website and serve it, run
npm run build-and-serve
instead.
AML's website is in fact an open source project, and your contribution is very much appreciated. Before you start, you should check for open issues or open a fresh issue to start a discussion around an idea that you'd like to see on our website or a bug. If you want to support us fixing issues, please follow the steps below:
- Fork the repository on GitHub and make your changes on the
develop
branch (or branch off of it). - Run the website to see if you fixed the issue.
- Send a pull request (with the develop branch as the target).
We will review your PR, comment if necessary, and merge it into our staging branch stg
.
You can contribute to the following:
- Spelling mistakes
- Editing an existing documentation page
- Adding a new documentation page
- And others, after carefully reviewing the issue you created
Edit docs by navigating to docs/
and editing the corresponding document:
docs/doc-to-be-edited.md
---
id: page-needs-edit
title: This Doc Needs To Be Edited
---
Edit me...
Create the doc as a new MDX file in /docs
, example docs/8-New Doc.mdx
:
---
id: newly-created-doc
title: This Doc Needs To Be Edited
---
My new content here...
NOTE: The file name contains its position in the sidebar, and the title
metadata is shown in the sidebar.
If you want to customize these fields you can add the following fields to the doc metadata:
---
sidebar_label: Title in the sidebar
sidebar_position: 2
---
For more information on how to create and/or edit this website, refer to the Docusaurus documentation.