Go to file
Serafeim Chatzopoulos af2589274a Merge pull request 'Update to docusaurus v2.2.0 && npm audit fix' (#16) from update_docusaurus into main
Reviewed-on: D-Net/openaire-graph-docs#16
2022-11-17 14:48:57 +01:00
blog initial commit 2022-09-01 10:26:04 +03:00
docs Merge pull request 'Add formating to impact indicators page' (#9) from impact_indicators into main 2022-11-17 14:24:53 +01:00
src Serve docs in the landing page 2022-09-20 19:25:30 +03:00
static decision trees updated and link of images added in comments 2022-11-14 11:13:29 +01:00
.gitignore more git ignores 2022-11-08 09:36:35 +01:00
Dockerfile Add deployment with docker 2022-10-13 20:52:52 +03:00
README.md Add deployment with docker 2022-10-13 20:52:52 +03:00
babel.config.js initial commit 2022-09-01 10:26:04 +03:00
docusaurus.config.js Add changelog.md; add version in navbar; update readme 2022-09-29 19:00:42 +03:00
package-lock.json Update to docusaurus v2.2.0 && npm audit fix 2022-11-17 13:50:45 +02:00
package.json Update to docusaurus v2.2.0 && npm audit fix 2022-11-17 13:50:45 +02:00
sidebar-utils.js Add example to all fields in entities and relationshipds 2022-09-23 17:19:32 +03:00
sidebars.js Replaced 'OpenAIRE Research Graph' with 'OpenAIRE Graph' 2022-11-15 15:26:58 +01:00

README.md

OpenAIRE Graph Documentation

This website is built using Docusaurus 2; please check here the requirements to run the project.

Clone repository

$ git clone https://code-repo.d4science.org/D-Net/openaire-graph-docs.git

Local installation and deployment

To install the required packages use:

$ npm install

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.

$ npm run start

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.

$ npm run build

Deployment using Docker

Development

Build docker container for development and run on port 3000:

docker build --target development -t docs:dev .
sudo docker run -d -p 3000:3000 docs:dev

Production

Build docker container for production and run on port 80:

docker build -t docs:latest .
docker run -d -p 80:80 docs:latest

Documentation versioning

The versioning documentation of Docusaurus can be found here. 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:

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