Skip to content

Commit

Permalink
docs: updated contribution guidelines for website (#3559)
Browse files Browse the repository at this point in the history
Signed-off-by: BalaadityaPatanjali <[email protected]>
Signed-off-by: odubajDT <[email protected]>
Co-authored-by: RealAnna <[email protected]>
Co-authored-by: odubajDT <[email protected]>
  • Loading branch information
3 people authored Jun 27, 2024
1 parent f5a820f commit 65211fe
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/docs/contribute/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,9 @@ It is divided into three sections:
gives additional guidelines that apply only to documentation contributions
and describes the documentation file structure
and the documentation tools we use.

* [Website contributions](website/index.md)
provides relevant information for contributing
to the website, including all the file directories and
files used to modify the website, and instructions for
testing and verifying changes before submitting.
35 changes: 35 additions & 0 deletions docs/docs/contribute/website/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
comments: true
---

# Contribute to the Website

This section provides information on how to contribute to the website.

## Location of Files Used to Modify the Website

Here are some key files and directories:

- **`docs/assets/`**: This directory contains all the stylesheets and
javascript files.
- **`docs/overrides/`**: This directory contains all the html files.
- **`docs/website.yml`**: This file contains configurations specific to the
website, such as all the directories.
- **`mkdocs.yml`**: The main configuration file for MkDocs.
It defines the structure and configuration of the documentation site.

## How to Test/Verify Changes

To test and verify changes before submitting:

- Make your changes in a new branch.
- Open a pull request.
- The changes will be reflected in the ReadTheDocs preview for the PR.
- Review the preview to ensure your changes are correct.

## Building the Website Locally

To see your changes live on your local machine, follow the steps described in the
[Building Documentation Locally](../docs/local-building.md) guide.
This guide provides detailed instructions on how to set up a local MkDocs build
environment.
10 changes: 10 additions & 0 deletions docs/website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
contribution_guide:
directories:
website_files:
HTML_files:
- first_path: "https://github.com/keptn/lifecycle-toolkit/tree/main/docs/overrides"
- second_path: "https://github.com/keptn/lifecycle-toolkit/tree/main/docs/overrides/partials"
stylesheet_files:
- path: "https://github.com/keptn/lifecycle-toolkit/tree/main/docs/assets/stylesheets"
javascript_files:
- path: "https://github.com/keptn/lifecycle-toolkit/tree/main/docs/assets/javascripts"
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,5 +234,7 @@ nav:
- Blogs: docs/contribute/docs/blog.md
- Published doc structure: docs/contribute/docs/publish.md
- Word list: docs/contribute/docs/word-list.md
- Website Contributions:
- docs/contribute/website/index.md
- Blog:
- blog/index.md

0 comments on commit 65211fe

Please sign in to comment.