Go to file
Thanasis Vergoulis cf81cb5ba3 Update 'docs/data-model/pids-and-identifiers.md' 2023-04-21 22:35:43 +02:00
blog initial commit 2022-09-01 10:26:04 +03:00
docs Update 'docs/data-model/pids-and-identifiers.md' 2023-04-21 22:35:43 +02:00
src Change footer 2022-12-20 15:20:50 +02:00
static Update graph name, logo, and badges 2023-02-23 13:50:36 +02:00
versioned_docs Merge remote-tracking branch 'origin/main' into 8549_affiliation_extraction 2023-04-11 14:22:00 +02:00
versioned_sidebars Split relationships in two pages && minor changes in sidebar 2023-04-05 18:28:12 +03:00
.env Fix links from impact measures page to specific properties/objects in the result 2022-12-27 21:22:30 +02:00
.gitignore ignore intellij project file 2022-11-23 14:33:34 +01:00
Dockerfile Add deployment with docker 2022-10-13 20:52:52 +03:00
README.md integrating Scholexplorer Bio Entity Datasource documentation (PR#48) 2023-03-09 15:00:45 +01:00
babel.config.js initial commit 2022-09-01 10:26:04 +03:00
docusaurus.config.js Update graph name, logo, and badges 2023-02-23 13:50:36 +02:00
package-lock.json added new relationships 2022-12-27 12:51:52 +01:00
package.json added new relationships 2022-12-27 12:51:52 +01:00
release.properties Update 'release.properties' 2022-12-20 15:16:23 +01:00
sidebars.js Split relationships in two pages && minor changes in sidebar 2023-04-05 18:28:12 +03:00
versions.json created version 5.1.2, updated changelog 2023-04-05 16:07:05 +02: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

From https://docusaurus.io/docs/installation#requirements

Node.js version 16.14 or above (which can be checked by running node -v)

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.

Therefore, when previewing the compiled site locally with npm run start, ensure to visualise the Next version on the browser as it shows the changes under /docs. To change a version that was already versioned, the source files to be modified are in the versioned_docs/version-<versionName>/ folder.