You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Go to file
Serafeim Chatzopoulos 053f708fe8 Merge pull request 'main' (#1) from D-Net/openaire-graph-docs:main into main
Reviewed-on: #1
1 year ago
blog initial commit 2 years ago
docs adding link to the DataCite metadata kernel 1 year ago
src Change footer 1 year ago
static Update citation of OpenAIRE Research Graph 1 year ago
.env Fix links from impact measures page to specific properties/objects in the result 1 year ago
.gitignore ignore intellij project file 1 year ago
Dockerfile Add deployment with docker 2 years ago
README.md Update 'README.md' 1 year ago
babel.config.js initial commit 2 years ago
docusaurus.config.js Set docsRouteBasePath for search plugin 1 year ago
package-lock.json added new relationships 1 year ago
package.json added new relationships 1 year ago
release.properties Update 'release.properties' 1 year ago
sidebars.js Add helpdesk in sidebar 1 year ago

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.