Coder Social home page Coder Social logo

michael-valdron / devfile-docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devfile/docs

0.0 1.0 0.0 2.07 MB

Devfile website and documentation

Home Page: https://devfile.github.io/

License: Apache License 2.0

JavaScript 7.96% Handlebars 3.12% Less 42.02% CSS 1.79% SCSS 42.18% Shell 2.93%

devfile-docs's Introduction

Deprecated

This repository has been deprecated and is no longer supported! The Devfile 2.0 website and documentation has been moved to https://github.com/devfile/devfile-web/.

Devfile 2.0 website and documentation

The generated JSON Schema documentation for the Devfile 2.x is available here: https://devfile.github.io/.

Devfile 2.0 documentation

Devfile 2.1 development documentation

Contributing

The repository has many versions of the documentation. Therefore, ensure you test the version of the documentation for your contribution.

  • For the newest version, use the master branch.
  • For an earlier version, use the v<n>.<m>.x branch where n is the major version of the release, and m is the minor version. For example, v2.0.x.
  • When merging any changes for an earlier release, merge into the correct branch and not master.

Build is the same for each branch.

Building and testing the documentation on a local environment

On a local environment, use the same container and tools that all GitHub workflows use to:

  1. Generate the API reference HTML single-sourced from the API repository.
  2. Generate the static Antora website in the build directory (including all in v2.* branches).
  3. Start a preview server listening at http://0.0.0.0:4000.
  4. Validate the language on changed files.
  5. Validate the internal and external links.
  6. Validate the shell scripts.

Prerequisites

  • The podman or docker tool is available.

Procedure

  1. From the root of this repository, run:
$ git fetch --all
$ ./tools/runnerpreview.sh
  1. Watch the output for alert messages about language usage, broken links or errors in shell scripts.

  2. Browse the results in the preview server at http://0.0.0.0:4000.

Testing the content of a pull request

  • Use the preview links visible in the pull requests comment.

Issue tracking repository

https://github.com/devfile/api with the area/documentation label.

Release process

Each release, create a Git release, tag, and branch. The tag marks the initial release documentation. The publication uses the branch. Add post-release updates to the branch. Further release work continues on the master branch. To enable this, follow the following release process:

Creating a release branch

Create a branch specific to the release version. For example, if the release version is 2.0.0:

  1. Prior to this process, update the API repository to copy a final version of the schema to a directory for that version. For example: docs/modules/user-guide/attachments/jsonschemas/2.0.0/devfile.json

  2. Create the branch for the tag:

    git fetch --all
    git checkout -b v2.0.x v2.0.0`
  3. Edit the docs/antora.yaml file to set the prod-ver, version, and prerelease attributes:

    1. For example if release is 2.0.0
      asciidoc:
        attributes:
          prod-ver: 2.0
      # [...]
      version: '2.0.0'
      prerelease: false
  4. Edit the .gitignore file to ignore the API reference files generated from the schema that are not for the release:

    docs/modules/user-guide/attachments/api-reference/next
    docs/modules/user-guide/attachments/api-reference/stable
    docs/modules/user-guide/examples/api-reference/next
    docs/modules/user-guide/examples/api-reference/stable
    
  5. Edit the docs/modules/user-guide/partials/ref_api-reference.adoc file to pull the iframe and link from the newly generated directories.

    // [...]
     ++++
     <iframe src="./_attachments/api-reference/2.0.0/index.html" style="border:none;width: 100%;min-height:50em;height:-webkit-fill-available;"></iframe>
     ++++
    
     .Additional resources
    
     * link:{attachmentsdir}/jsonschemas/2.0.0/devfile.json[Download the current JSON Schema]```
    
  6. Build the docs and verify all looks good.

  7. Add the changes, commit the branch and push directly to the docs repo. (There is no merge required for this branch).

Changes to the master branch

Now the master branch can be updated for the next release and to link the previous release docs from the newly created v.2.0.x branch.

  1. Modify 'docs/antora.yaml' to set the correct version and prod-ver values. For example:

    asciidoc:
      attributes:
        prod-ver: 2.2
    #[...]
    version: '2.2.0'
  2. Build, test, commit and merge the changes

Publication

The .github/workflows/publication-builder.yml worklow:

  1. Builds the Antora website.
  2. Commits the artifact to the publication branch.
  3. Requests a build in the devfile/landing-page repository that publishes the content of the publication branch to the live website.

The .github/workflows/call-publication-builder.yml workflow calls the publication-builder.yml workflow on push on any release branch (master or v*).

devfile-docs's People

Contributors

amisevsk avatar braden-wilson avatar davidfestal avatar dependabot[bot] avatar dkwon17 avatar elsony avatar feloy avatar gabriel-rh avatar geekarthur avatar gorkem avatar harshcasper avatar ibuziuk avatar jc-berger avatar johnmcollier avatar kadel avatar kim-tsao avatar kowen-rh avatar l0rd avatar maysunfaisal avatar metacosm avatar michael-valdron avatar mmulholla avatar nickboldt avatar pierreprinetti avatar schultzp2020 avatar scottkurz avatar sleshchenko avatar svor avatar themr0c avatar yangcao77 avatar

Watchers

 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.