Coder Social home page Coder Social logo

apinnick / foreman-documentation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from theforeman/foreman-documentation

0.0 0.0 0.0 17.04 MB

Documentation for the Foreman Project and its ecosystem

Home Page: https://docs.theforeman.org

License: Creative Commons Attribution Share Alike 4.0 International

Shell 2.20% JavaScript 4.03% Ruby 16.18% Python 13.94% Makefile 7.36% HTML 4.53% Dockerfile 0.55% SCSS 51.20%

foreman-documentation's Introduction

Foreman documentation

This git repository contains the following documentation:

  • Official documentation for the Katello project
  • PoC of improving documentation for the Foreman project. See this milestone to check the progress.

For official Foreman documentation, see Foreman Manual.

Contributing

Contributions are welcome. Please, familiarize yourself with CONTRIBUTING and Contribution Guidelines for Foreman guides.

Repository content

Foreman guides

This is a tree of documentation based on Red Hat Satellite 6 official books. See README in the guides/ subdirectory for more information.

Static site

The landing page for docs.theforeman.org is available as a generated static site. The static content is always built from the master branch. See README in the web/ subdirectory for more information.

Testing locally

To build both static site and guides for easy local testing, there is the global Makefile in the root directory with the following targets:

  • html: builds HTML guides with all contexts (foreman-el, foreman-deb, katello, satellite, and orcharhino)
  • web: builds static site using the nanoc tool
  • compile: compiles all content into a single directory ./result
  • serve: serves the result directory via a python web server (the default target)

To test the whole site locally, perform make serve command and open up http://localhost:5000. Use PORT=5008 to change the web server port (5000 by default). It builds all contexts so the initial build can be slow, make sure to use -j option for faster builds on modern multi-core machines. Stable versions are symlink to the nightly (current) version, this can cause issues for deleted (or renamed) guides.

Deployment

Github actions perform HTML (with link validation) and WEB artifact creation and if succeeded and branch is master or stable, artifacts are downloaded, extracted and deployed (commited into gh-pages). Deployment does not delete files, in order to remove some unwanted content, manual deletion and push into gh-pages must be performed.

When a commit is pushed into master:

  • All artifacts are built.
  • Static WEB and HTML is downloaded and copied into / or /nightly respectively.
  • Changes are pushed into gh-pages branch.

When a commit is pushed into X.Y:

  • All artifacts are built.
  • HTML artifact is downloaded and copied into /X.Y.
  • Changes are pushed into gh-pages branch.

Branching new release

  • Create a new X.Y branch.
    • Update guides/common/attributes.adoc
      • Set DocState to unsupported
      • Set ProjectVersion to X.Y and set the matching KatelloVersion
    • Push into X.Y branch.
    • Notify the Doc team on the TheForeman Doc chat Matrix channel
  • Update master
    • Update ProjectVersionPrevious to X.Y in guides/common/attributes.adoc
    • Create a copy of /web/releases/nightly.json as X.Y.json and edit it accordingly.
      • Set the state to RC
      • Change katello to the right version
      • Change Nightly in titles to the appropriate version
      • Remove guides which aren't ready for stable branches.
    • Create a copy of /web/releases/nightly.adoc as X.Y.adoc and edit it accordingly. Remove guides which aren't ready for stable branches.
    • Test the changes by following the instructions in /web/README.md to deploy the website locally.
    • Add the new Foreman version to /.github/PULL_REQUEST_TEMPLATE.md.
    • Update VERSION_LINKS in the root Makefile.
    • Push the changes into master.
  • Check the site if links and landing page appeared correctly. HTML guides should be deployed into /X.Y

License

See LICENSE files in individual subdirectories.

foreman-documentation's People

Contributors

adamlazik1 avatar akshaygadhaverh avatar apinnick avatar asteflova avatar bangelic avatar dependabot[bot] avatar ehelms avatar ekohl avatar evgeni avatar griffin-sullivan avatar ianballou avatar ianf77 avatar imaanpreet avatar jeremylenz avatar jhutar avatar jlsherrill avatar lennonka avatar levi-leah avatar lumarel avatar lzap avatar maximiliankolb avatar mdolezelova avatar mjivraja avatar parthaa avatar ryandeussing avatar sabuchan07 avatar spetrosi avatar stejskalleos avatar suyogsainkar avatar upadhyeammit avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.