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.
Timur Osmanov ae175d9de2
Add item "Context images" in User Guide (#3227)
* Add item "Context images" in User Guide

* Delete header duplicate
5 years ago
..
assets Fix buttons "edit this page", "create child page" and fix cover-block background on website (#3220) 5 years ago
content/en Add item "Context images" in User Guide (#3227) 5 years ago
i18n Website with documentation (#3039) 5 years ago
layouts Website with documentation (#3039) 5 years ago
static/favicons Website with documentation (#3039) 5 years ago
themes Website with documentation (#3039) 5 years ago
README.md Website with documentation (#3039) 5 years ago
config.toml Fix buttons "edit this page", "create child page" and fix cover-block background on website (#3220) 5 years ago
package-lock.json Website with documentation (#3039) 5 years ago
package.json Website with documentation (#3039) 5 years ago

README.md

Basic manual for website editing

Edit or add documentation pages

To edit and/or add documentation, you need to have a GitHub account. To change documentation files or add a documentation page, simply click Edit this page on the page you would like to edit. If you need to add a child page, click Create child page.

If you need to edit the text that has the markup markdown, click on the Fork this repository button.

Read how to edit files for github (GitHub docs).

Please note that files have a markup for correct display on the site: the title, the title of the link, the weight (affects the order of files display on the sidebar) and description (optional):

---
title: "Title"
linkTitle: "Link Title"
weight: 1
description: >
    Description
---

Start site localy

To start the site locally, you need arecent extended version hugo (recommend version 0.75.0 or later). Open the most recent release and scroll down until you find a list ofExtendedversions. Read more

Add a path to "hugo" in the "Path" environment variable.

Clone a repository branch containing the site. For example, using a git command:

git clone --branch <branchname> <remote-repo-url>

If you want to build and/or serve your sitelocally, you also need to get local copies of the themes own submodules:

git submodule update --init --recursive

To build and preview your site locally, use:

cd <your local directory>/cvat/site/
hugo server

By default, your site will be available athttp://localhost:1313/

Instead of a "hugo server" command, you can use the "hugo" command that generates the site into a "public" folder.

To build or update your sites CSS resources you will need PostCSS to create final assets. To install it you must have a recent version of NodeJS installed on your machine, so you can use npm, the Node package manager. By default npm installs tools under the directory where you run npm install:

cd <your local directory>/cvat/site/
npm ci

Then you can build a website in the "public" folder:

hugo

Read more