This GitHub project hosts the sources from which the Dataverse website at https://sphinx.dataverse.org is built. If we like Sphinx, we might switch https://dataverse.org to it. Builds are automated and any commited changes will be released by automation.
You can do smaller edits using the GitHub integrated web editor for files and change the Markdown based content. For larger changes, we recommend working with a local setup, also allowing to preview your changes. See below for a tutorial how to start your local setup.
First, install Python 3.9 (or later).
Additionally, you need to install poetry >= 1.2.0
, either globally, or within an environment of your choice.
As a project, we chose poetry
to manage our dependencies, builds, and deposits as a state of the art solution within the Python ecosystem.
Next, you need to obtain a version of the website "source code".
You can either download it as a zipped package or clone the whole Git repository. You can clone the repository and enter the project directory as follows:
git clone https://github.com/IQSS/sphinx.dataverse.org.git
cd sphinx.dataverse.org
To build the website in your poetry environment, run the following commands from the project root:
poetry install
poetry run task docs-build
On Linux you can use xdg-open
, on Mac open
to see the built output in your browser:
xdg-open build/html/index.html
Or use sphinx-autobuild
to enable a self-updating preview service:
poetry install
poetry run task docs-live
The page will automatically be opened for you in a browser window or tab. Note: enabling auto-reload without user interaction requires you to install the "LiveReload" extension for your browser.