/doc-o-o

Resources for the doc.opensuse.org website

Primary LanguageShellGNU General Public License v3.0GPL-3.0

doc.opensuse.org

Built with openSUSE Jekyll Theme.

Note that this repo only contains the home page of the site. Actual documents are from:

Development

Setting up the environment

sudo zypper in ruby ruby-devel ruby2.5-rubygem-bundler ruby2.5-rubygem-eventmachine gcc-c++
bundle install

Making changes

Most changes, such as setting up a new product or guide, need to be made in the file _config.yml.

Building the navigation

make build

The resulting site will be in the _site directory.

Serving the navigation locally

make serve

Visit http://localhost:4000/ in your browser. Press Ctrl-C to stop serving the site.

Syncing the site

Prerequisites

Contact the openSUSE admin team to be granted VPN access, and SSH access to relsync@pinot.infra.opensuse.org (was community-i-o-o). For that you need a GPG key with the encryption capability.

Adding release notes for new release

Make sure that rn-config/etc/release-notes has required entry. Such configuration then needs to be deployed to pinot-i-o-o.

Syncing documentation navigation

The make upload no longer works as community was decomissioned. See poo#162020 ticket for fixing of the process.

Make a local build && create archive of the "_site" build dir. Extract _site archive or rsync _site/* into community2.infra.opensuse.org:/srv/www/vhosts-legacy/doc-htdocs/ Ask admin@opensuse.org for root access or ping lkocman.

Syncing configuration for the release notes

make upload_rn_config

Setting the current docs version

First make sure the correct version is set in publishusers.

make set_docs_current_version

Building and syncing documentation content

  1. Clone the doc-sle repository locally: git clone https://github.com/SUSE/doc-sle
  2. Switch to the correct branch in the doc-sle repository: git -C /path/to/doc-sle checkout ...
  3. Open doc-build-script from this repository and make sure the following are set correctly (!!):
    • referenced guides ($guides)
    • the openSUSE Leap version number ($version)
  4. Run the script, from within this repo: ./doc-build-script /path/to/doc-sle
  5. (Optional) If a new version has been released and the links still point to the older version, see Setting the current docs version