openaire-graph-docs/README.md

43 lines
1.4 KiB
Markdown
Raw Normal View History

# OpenAIRE Graph Documentation
2022-09-01 09:26:04 +02:00
2022-09-20 18:25:30 +02:00
This website is built using [Docusaurus 2](https://docusaurus.io/); please check [here](https://docusaurus.io/docs/installation#requirements) the requirements to run the project.
## Clone repository
2022-09-20 18:25:30 +02:00
```
$ git clone https://code-repo.d4science.org/D-Net/openaire-graph-docs.git
```
2022-09-01 09:26:04 +02:00
## Local installation and deployment
2022-09-01 09:26:04 +02:00
To install the required packages use:
2022-09-01 09:26:04 +02:00
```
2022-09-20 18:25:30 +02:00
$ npm install
2022-09-01 09:26:04 +02:00
```
The following command starts a local development server and opens up a browser window. Note that most changes are reflected live without having to restart the server.
2022-09-01 09:26:04 +02:00
```
2022-09-20 18:25:30 +02:00
$ npm run start
2022-09-01 09:26:04 +02:00
```
Generate the static content into the `build` directory using the command tha follows. Then this directory can be served using any static contents hosting service.
2022-09-01 09:26:04 +02:00
```
2022-09-20 18:25:30 +02:00
$ npm run build
2022-09-01 09:26:04 +02:00
```
## Deployment using Docker
TODO
## Documentation versioning
The versioning documentation of Docusaurus can be found [here](https://docusaurus.io/docs/versioning).
Specifically, a new version can be created with the following command:
```
npm run docusaurus docs:version <versionName>
```
When tagging a new version, the document versioning mechanism will:
2022-09-01 09:26:04 +02:00
* Copy the full `docs/` folder contents into a new `versioned_docs/version-<versionName>/` folder.
* Create a versioned sidebars file based from your current sidebar configuration, saved as `versioned_sidebars/version-<versionName>-sidebars.json`.
* Append the new version number to `versions.json`.