diff --git a/.devcontainer.json b/.devcontainer.json index 18c1b2bc..23247402 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -2,9 +2,6 @@ // https://github.com/microsoft/vscode-dev-containers/tree/v0.195.0/containers/javascript-node { "name": "Docusaurus", - // Update 'VARIANT' to pick a Node version: 16, 14, 12. - // Append -bullseye or -buster to pin to an OS version. - // Use -bullseye variants on local arm64/Apple Silicon. "image": "mcr.microsoft.com/devcontainers/javascript-node", // Configure tool-specific properties. @@ -19,8 +16,8 @@ "editor.rulers": [100], "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.codeActionsOnSave": { - "source.fixAll.eslint": true, - "source.fixAll.markdownlint": true + "source.fixAll.eslint": "always", + "source.fixAll.markdownlint": "always" }, "eslint.options": { "extensions": [".js", ".jsx", ".md", ".mdx", ".ts", ".tsx"] @@ -59,7 +56,10 @@ // Use 'forwardPorts' to make a list of ports inside the container available locally. "forwardPorts": [3000], - // Use 'postCreateCommand' to run commands after the container is created. + // Use 'updateContentCommand' to run commands after the container is created and before the project is cloned. + "updateContentCommand": "npm install -g npm", + + // Use 'postCreateCommand' to run commands after the project has been cloned into the container. "postCreateCommand": "npm install", // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 305b4d50..a9c24694 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,8 +18,9 @@ jobs: - name: Build id: build run: | + npm install -g npm npm install - npm run build --if-present + npm run build - name: Deploy if: steps.build.outcome == 'success' && github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'skip deploy') diff --git a/docs/eln/install_configure/configuration.mdx b/docs/eln/install_configure/configuration.mdx index 53189a9b..8966f527 100644 --- a/docs/eln/install_configure/configuration.mdx +++ b/docs/eln/install_configure/configuration.mdx @@ -447,11 +447,13 @@ production: Here the `nmriumwrapper.url` value depends on the version of Chemotion ELN you are using. The compatibility between the ELN and the wrapper is as follows: -| Version of Chemotion ELN | Version of NMRium wrapper | -| ------------------------ | ------------------------- | -| 1.5 & 1.6 | 0.1.0 | -| 1.7.0 - 1.7.2 | 0.1.0 - 0.3.0 | -| 1.7.3 | 0.4.0 | +| Version of Chemotion ELN | Version(s) of NMRium wrapper | +| ------------------------ | ---------------------------- | +| 1.5 & 1.6 | 0.1.0 | +| 1.7.0 - 1.7.2 | 0.1.0 - 0.3.0 | +| 1.7.3 - 1.8.1 | 0.4.0 | +| 1.8.2 | 0.5.0 | +| 1.9.0 | 0.4.0 - 0.6.0 | So, if you are using e.g. ELN version 1.5.3, please `nmriumwrapper.url` to `https://nmrium.nmrxiv.org/releases/v0.1.0/`. diff --git a/src/js/gallery.js b/src/js/gallery.js index 9e6981e2..b266b2d6 100644 --- a/src/js/gallery.js +++ b/src/js/gallery.js @@ -13,8 +13,6 @@ export function Gallery({ links, titles }) { width="320" height="180" src={link} - // title={this.state.titles[idx]} - frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />