redhat-appstudio / docs.appstudio.io

This repository is the official source of record for App Studio documentation.

Home Page:https://redhat-appstudio.github.io/appstudio.docs.ui.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

App Studio documentation

App Studio is an effort to automate build and delivery of Red Hat products. With App Studio, you have access to single, simple workflow for developing, testing, and releasing containerized applications while ensuring compliance with enterprise security standards.

App Studio documentation links

External links

Notes

This README file follows the content and syntax conventions defined in the Systems Design and Engineering Continuous Integration Git Repository README File Guide (The Source):

References for documentation team

Required tools

A set of tools is required to render the documentation from Antora/AsciiDoc to HTML, and they need to be installed on the local machine:

  • NodeJS, install the latest LTS version
  • Golang, install the latest version
  • Git, install the latest version

To install on Fedora Linux run the following command:

$ sudo dnf install nodejs golang git-core

Rendering the documentation

To render the documentation to HTML format run npm run build, this will output the rendered HTML files in the public subdirectory which can be opened in the browser.

For convenience there is also the dev script, that can be run with npm run dev to render and start a HTTP server at http://localhost:8080.

Jira workflow

  1. Open Epics based on the doc plan.
  2. Outline sprint/milestone.
  • Follow up with SMEs to confirm their availability.
  1. Break Epics down into tasks.

  2. Discuss and assign tasks.

  • New: on your queue but you haven’t started yet.

  • Refinement: research it, read up on it, talk to SMEs about it. In a Jira comment, you can recap your research and SME conversations. You understand it enough to make a GDoc or Pull Request (PR).

  • For bigger doc tasks, like creating entirely new documents, writing abstracts, developing procedures, etc., you might find it best to start in a GDoc.

  • In the GDoc, you can receive reviews quickly and address reviews quickly. Once the doc is in good shape, you can take the content from the GDoc, and put in an ascii doc file and make a PR. This way, the PR is opened and closed quicker.

  • In Progress: you’re now writing or making a file update. You have something to share beyond a Jira comment or status update.

  • Review: you’ve elicited a peer review from docs, devs, and QE. You address the review as it comes. During the review stage, your content can be in either a GDoc or PR.

  • Depending on the task, you might not need a review from all three: dev, doc, QE. For instance, fixing a broken link might only require a QE review. Changing a grammatical error might only require a doc review. Use your best judgment.

  • Closed: reviews are complete and addressed. The PR is merged and the content is published.

Docs workflow with Dev and QE

  1. Sprint planning.
  • Does Docs have the bandwidth for this task?

  • Will SMEs and QE be available to support Docs with this task for this sprint?

  1. Research.
  • Talke with SMEs. Gather information.
  1. Review.
  • If in a GDoc, add comments and update the GDoc until the content is ready to be converted into an ascii doc and shared in a PR.
  • When the PR is created, the engineers review it and provide:
  • Technical accuracy of content, not grammatical and language review.
  • Provide user perspective.
  • Writer responds to the review. Updates the Gdoc or PR and repeats until the review is complete and the doc is ready be published.

Git workflow

Forking and cloning GitHub repository

  1. Fork the GitHub repository from the GitHub user interface (UI).
  2. On the command line interface (CLI) on your local machine, run the following commands:
  3. git clone git@github.com:<your-github-username>/<github repository you’re cloning>.git
  4. cd <github repository>
  5. git remote add -f upstream <git@github.com>/<github repository>
  6. git checkout main
  7. git remote -v
  • Run this command to confirm that you have origin and upstream configured.
  1. Now you’re ready to start contributing!

Making a pull request (PR)

  1. cd <name of place where you stored the cloned repo/<name of repo> Ex: cd documents/docs.appstudio.io/
  2. git checkout main
  3. git fetch upstream Git data from upstream repo (the main repo)
  4. git merge upstream/main Update what’s on my local repo (my cloned repo, on my machine)
  5. git push
  • To make sure your fork is now up to date with your local copy

  • You could say “git push origin” but it’s superfluous because it’s always origin :)

  • Now everything is up to date (main, fork, clone)

  1. git checkout -b <feature-branch>
  • Make the name of the feature branch the same name as the issue
  • Ex: git checkout -b Stonesoup-170 upstream/main
  1. Make doc changes.
  • Make the doc changes in your chosen editor: Atom, VS Code, etc.
  1. Run antora to check and test your doc changes on a local host server
  • There’s multiple ways to build docs locally with Antora, we’ll need to determine a way
  1. git status
  • Verifies that the files you made changes to have been registered as a changed file, and therefore, can be committed.
  1. git add .
  • . is a terminal thing.

  • . means THIS directory. So it means add files from this current directory you’re on

  • git add you’re adding stuff to git stage.

  • You could actually list the doc instead of the . the . is easy because it adds EVERYTHING that has been changed. So you can add like 3 files to one commit. If no ., then you have to manually add each file!

  1. git status
  • Double check that your file is in fact staged to be committed.

  • Your file(s) will be highlighted green in the CLI once they’ve been added. If it’s not highlighted green, it was not added to be committed :)

  1. git commit -m <name of commit message>
  • Simply ready to be pushed.

  • Ex: git commit -m Stonesoup-170 restructured procedure steps

  1. git push -u origin <feature branch>
  • This command creates the PR, and the PR is asking to merge your feature branch into the main repository.

  • You don’t need git push -upstream origin <feature branch> remember, origin is the default. Like in step 5, it’s superfluous. You’re already on feature branch and staged the commit, so simply push it!

  1. Go to GitHub to make the PR

  2. Tag people, write messages, do what you must to receive peer reviews of your newly created PR.

Making commits for a PR

  1. cd <location of repo>/<name of repo>

  2. git checkout main

  3. git fetch upstream

  4. git merge upstream/main

  5. git push

  • To make clone and fork up-to-date with master
  1. git checkout <feature-branch>

  2. git pull --ff-only

  • These command makes sure your feature branch (always on your fork) is nync with the master repo (upstream), hence why we merge to main
  1. Make doc changes

  2. Run antora to check and test your doc changes on a local host server

  3. git status

  4. git add .

  5. git status

  • Double check that your file is in fact staged to be committed.

  • Your file(s) will be highlighted green in the CLI once they’ve been added. If it’s not highlighted green, it was not added to be committed :)

  1. git commit --amend
  • This will add any updates to your previous commit within the PR. If you do want to create a 2nd commit in the PR, run the command: git commit -m <name of commit message>
  1. git push
  • After you make a PR, you ought to be able to simply run git push to make a new commit. If you get any error messages, try git push -u origin <feature branch>
  1. Go to PR to ensure the commit has been made.
  • Tag reviewers, direct their attention to specific areas of content or whatever you see fit.

To generate output

About

This repository is the official source of record for App Studio documentation.

https://redhat-appstudio.github.io/appstudio.docs.ui.io/


Languages

Language:SCSS 48.1%Language:Less 47.5%Language:CSS 1.7%Language:Handlebars 1.6%Language:Shell 1.1%