From ebe7b0e03f0e088b5309b12f40fc241d138a1e23 Mon Sep 17 00:00:00 2001 From: Markus Scheidgen <markus.scheidgen@gmail.com> Date: Tue, 2 Oct 2018 15:06:49 +0200 Subject: [PATCH] Fixed wrong path prefix. --- docs/conf.py | 4 ++-- gui/src/components/Documentation.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index e7655d6def..32ac4f50ab 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -21,8 +21,8 @@ sys.path.insert(0, os.path.abspath('..')) # -- Project information ----------------------------------------------------- project = 'nomad-FAIR' -copyright = '2018, the NOMAD developers' -author = 'the NOMAD developers' +copyright = '2018, FAIRDI e.V.' +author = 'FAIRDI e.V.' # The short X.Y version version = '' diff --git a/gui/src/components/Documentation.js b/gui/src/components/Documentation.js index 8fdea78695..8f9b2e341b 100644 --- a/gui/src/components/Documentation.js +++ b/gui/src/components/Documentation.js @@ -1,6 +1,7 @@ import React, { Component } from 'react' import PropTypes from 'prop-types' import { withStyles } from '@material-ui/core'; +import { apiBase } from '../config'; class Documentation extends Component { @@ -26,7 +27,7 @@ class Documentation extends Component { <div className={classes.content}> <iframe frameBorder={0} width="768" height={window.innerHeight - 64} - src="http://localhost:8000/nomad/api/docs/index.html" + src={`${apiBase}/docs/index.html`} /> </div> </div> -- GitLab