Skip to content

erjoh001/vitalcontrol.de

 
 

Repository files navigation

Website VitalControl

This project holds the sources for the web site www.vitalcontrol.de.

Running the website locally

Prerequisites

Building and running the site locally requires a recent extended version of Hugo (0.110.0 or higher). You can find out more about how to install Hugo for your environment in our Getting started guide.

Also make sure you installed go language (version 1.18 or higher) on your system.

Furthermore, you need to install the latest long term support (LTS) Version of Node.js.

Get website source repo

Clone a working copy of the site repo:

git clone https://github.com/deining/vitalcontrol.de.git

Install dependencies

Next install the two dependencies autoprefixer and postcss-cli:`

npm install

Site preview

In order to preview the web site, issue this command:

hugo server

On first startup, hugo will download needed module dependencies, this may take a while.

Now open your web browser and type http://localhost:1313 in your navigation bar. This opens a local instance of the VitalControl homepage. You can now make changes to the source files and those changes will immediately show up in your browser after you saved them (live reload).

Deployment of the website

In order to deploy the web site, issue this command:

hugo

This will create a folder public at the root level of the site that holds the HTML sources of the web site. Transfer the content of this folder to the web server hosting the site vitalcontrol.de.

Theming

The VitalControl web site makes use of the docsy hugo theme aimed at technical documentation projects. It pulls in the theme component as a hugo module.

Troubleshooting

For troubleshooting purposes, it can be convenient to have the source code of the docsy repo locally in place.

To do so, clone the latest version of the docsy theme into the parent folder of the vitalcontrol.de project. The newly created repo should now reside in a sibling folder of our site's root folder.

cd /path/to/your/local-site-repo/
git clone --branch v0.10.0 https://github.com/google/docsy.git ../docsy

Now open the file hugo.work, located in the root of your site repo. Uncomment the last line of this file, the content should look like this:

// running docsy theme locally (troubleshooting)
// uncomment line below for troubleshooting purposes
use .
use ../docsy/

About

Source of the website vitalcontrol.de

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.4%
  • Rich Text Format 2.3%
  • Other 0.3%