zowe / docs-site

Documentation for the Zowe project
https://docs.zowe.org/
Creative Commons Attribution 4.0 International
66 stars 132 forks source link

Zowe™ documentation

Welcome to the Zowe documentation repository! This repo is the source for https://docs.zowe.org, also known as "Zowe Docs"!

Zowe documentation is completely open-source and we appreciate contributions from the community.

Providing feedback

Your feedback is essential in shaping the Zowe content experience. There are several ways to provide feedback:

Only file issues about Zowe docs in this repository. For issues, questions, new feature requests, or enhancement ideas about a specific component or aspect of Zowe, open an issue in the corresponding code repository or ask in the community Slack channels.

Contributing to the docs

You can click the Fork button in the upper-right area of the screen to create a copy of this repository in your GitHub account. You can make doc changes in your fork, and when the changes are ready, go to your fork and create a new pull request to send the changes to us.

After that, a Zowe documentation reviewer will review your PR and provide feedback. The doc reviewer might ask for a technical review from a Zowe tech reviewer depending on the specific changes in the PR.

For more information about contributing to the Zowe documentation, see:

Adding DCO signoff to commits

Zowe requires the use of the Developer’s Certificate of Origin 1.1 (DCO). Every commit to this repo and other Zowe repos should be signed off using DCO. Otherwise, the PR could not be merged.

To sign off a commit, add a Signed-off-by line to your commit message. For example, Signed-off-by: John Doe john.doe@hisdomain.com.

Tools for automatic DCO signoff

If you don't want to manually copy/paste your signature in every commit, use one or both of the following tools:

What to do if I missed DCO signoff in previous commits?

If you missed DCO sign-off statements in a series of commits, you can retroactively sign commits by following these steps:

  1. Check and review all commits that report missing DCO signoff. If you already opened a PR, you can find this information by clicking the Details link in the DCO check entry.

  2. Create a new text (.txt) file (suggested name is past_commits_<your name>.txt) within the doc_signoffs folder.

  3. Add the following contents to the file. Take a look at this folder for examples.

    I, <author_name> hereby sign-off-by all of my past commits to this repo subject to the Developer Certificate of Origin (DCO), Version 1.1. In the past I have used emails: <emails>
    <COMMIT HASH> <COMMIT MSG>
  4. Commit this file to the doc site. Remember to include the signoff line in the commit message as well.

Doc branches

Before you get started with the authoring work, it's necessary that you understand the different branches to work on.

Site organization and files

Running the doc site locally

Prerequisites

You need the following installed locally:

Procedure

Before you start, clone this repository and navigate to the directory:

  1. In your local command line interface, navigate to the directory in which you want to create your local copy of this repository.
  2. Clone this repository by running the following command: git clone https://github.com/zowe/docs-site
  3. Access the newly-cloned repository by changing directories into it: cd docs-site

Once you have this repository set up locally and are in the docs-site directory, you can build and run the docs site locally by following the steps below:

  1. Run the command to install project dependencies: npm install
  2. Run npm start

Once complete, you can open your browser and view the doc site locally at http://localhost:3000/. As you make changes to the source files, the preview build will be triggered automatically, and then you can refresh your browser to see the changes.

Note: If you get an error digital envelope routines::unsupported this may be because of an incompatability between Node 18 and Webpack 5. To remedy this set the environment variable NODE_OPTIONS=--openssl-legacy-provider.
A gif build error node 16

Thank you!

We appreciate your contributions to our documentation!