Code Monkey home page Code Monkey logo

rhods-intro's Introduction

Introduction to Red Hat OpenShift AI

This is the first in a series of five courses about Red Hat OpenShift AI (RHOAI). This foundational courses introduces the features, use-cases, concepts, terminology and the architecture of the product.

Creating Course Content

We use a system called Antora (https://antora.org) to publish courses. Antora expects the files and folders in a source repository to be arranged in a certain opinionated way to simplify the process of writing course content using asciidoc, and then converting the asciidoc source to HTML.

Refer to the quick courses contributor guide for a detailed guide on how to work with Antora tooling and publish courses.

TL;DR Quickstart

This section is intended as a quick start guide for technically experienced members. The contributor guide remains the canonical reference for the course content creation process with detailed explanations, commands, video demonstrations, and screenshots.

Pre-requisites

  • You have a macOS or Linux workstation. Windows has not been tested, or supported. You can try using a WSL2 based environment to run these steps - YMMV!
  • You have a somewhat recent version of the Git client installed on your workstation
  • You have a somewhat new Node.js LTS release (Node.js 16+) installed locally.
  • Install a recent version of Visual Studio Code. Other editors with asciidoc editing support may work - YMMV, and you are on your own...

Antora Files and Folder Structure

The antora.yml file lists the chapters/modules/units that make up the course.

Each chapter entry points to a nav.adoc file that lists the sections in that chapter. The home page of the course is rendered from modules/ROOT/pages/index.adoc.

Each chapter lives in a separate folder under the modules directory. All asciidoc source files live under the modules/CHAPTER/pages folder.

To create a new chapter in the course, create a new folder under modules.

To add a new section under a chapter create an entry in the modules/CHAPTER/nav.adoc file and then create the asciidoc file in the modules/CHAPTER/pages folder.

Steps

  1. Clone or fork the course repository.
    $ git clone [email protected]:RedHatQuickCourses/rhods-intro.git
  1. Install the npm dependencies for the course tooling.
    $ cd rhods-intro
    $ npm install
  1. Start the asciidoc to HTML compiler in the background. This command watches for changes to the asciidoc source content in the modules folder and automatically re-generates the HTML content.
    $ npm run watch:adoc
  1. Start a local web server to serve the generated HTML files. Navigate to the URL printed by this command to preview the generated HTML content in a web browser.
    $ npm run serve
  1. Before you make any content changes, create a local Git branch based on the main branch. As a good practice, prefix the branch name with your GitHub ID. Use a suitable branch naming scheme that reflects the content you are creating or changing.
    $ git checkout -b rsriniva/ch01s01
  1. Make your changes to the asciidoc files. Preview the generated HTML and verify that there are no rendering errors.Commit your changes to the local Git branch and push the branch to GitHub.
    $ git add .
    $ git commit -m "Added lecture content for chapter 1 section 1"
    $ git push -u origin rsriniva/ch01s01
  1. Create a GitHub pull request (PR) for your changes using the GitHub web UI. For forks, create a PR that merges your forked changes into the main branch of this repository.

  2. Request a review of the PR from your technical peers and/or a member of the PTL team.

  3. Make any changes requested by the reviewer in the same branch as the PR, and then commit and push your changes to GitHub. If other team members have made changes to the PR, then do not forget to do a git pull before committing your changes.

  4. Once reviewer(s) approve your PR, you should merge it into the main branch.

  5. Wait for a few minutes while the automated GitHub action publishes your changes ot the production GitHub pages website.

  6. Verify that your changes have been published to the production GitHub pages website at https://redhatquickcourses.github.io/rhods-intro

Problems and Feedback

If you run into any issues, report bugs/suggestions/improvements about this course here - https://github.com/RedHatQuickCourses/rhods-intro/issues

rhods-intro's People

Contributors

jramcast avatar rsriniva avatar lautou avatar sarveshpandit avatar alxlenc avatar chuckersjp avatar strangiato avatar earvonen 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.