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
Claudio Atzori 2f1042d747 Merge pull request 'changelog for v7.1.1' (#71) from v7.1.1 into main
Reviewed-on: #71
1 month ago
blog initial commit 2 years ago
docs changelog for v7.1.1 1 month ago
src Add changes for version 6.1.0 8 months ago
static Rename dump to dataset 3 months ago
versioned_docs changelog for v7.1.1 1 month ago
versioned_sidebars changelog for v7.1.1 1 month 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 Add matomo tracking script 9 months ago
package-lock.json Add matomo tracking script 9 months ago
package.json Add matomo tracking script 9 months ago
release.properties Update 'release.properties' 1 year ago
sidebars.js Add link to User Forum 3 months ago
versions.json changelog for v7.1.1 1 month ago

README.md

OpenAIRE Graph Documentation

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

Local installation and development

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

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

Clone the repository:

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

NOTE: please use git branches for introducing new changes.

Install the required packages:

npm install

Start a local development server (opens in a new browser window).

npm run start

NOTE: most changes are reflected live without having to restart the server.

Before issuing a Pull Request, please ensure that the following command runs successfully:

npm run build

NOTE: This command generates the static content into the build directory. Then this output directory is issued to deploy the documentation website.

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.