Skip to content

Commit ff48c46

Browse files
committed
re-worked site to use docs folder
1 parent 169b019 commit ff48c46

5 files changed

Lines changed: 37 additions & 22 deletions

File tree

README.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,26 @@
44
## Overview
55
This repository contains the documentation for [Ocre](https://lfedge.org/projects/ocre/). This repo hosts the code for the Ocre docs site, which is separate from the main Ocre project repository.
66

7-
The live version of the documentation can be viewed at [https://example.com](https://example.com).
7+
The live version of the documentation can be viewed at: [https://example.com](https://example.com).
88

99
## Project Structure and Contribution Guidelines
1010
This documentation site was built using [Jekyll](https://jekyllrb.com/) and the [Just the Docs theme](https://just-the-docs.com/).
1111

1212
### Project File Structure
1313
```
14-
.
15-
├── _docs/ # Documentation files (Markdown format) - main focus for contributors
16-
├── assets/ # Contains images, scripts, and other static assets
17-
├── _config.yml # Site configuration file
18-
├── Gemfile # Ruby dependencies for Jekyll
19-
├── Gemfile.lock # Version lockfile for dependencies
20-
├── README.md # The file you are reading right now
21-
└── _site/ # Auto-generated, do not edit directly (site build output)
14+
├── docs/ # Contains all markdown files for documentation
15+
│ └── assets/ # Holds images, CSS, JS, etc. for the documentation
16+
├── _config.yml # Jekyll configuration file, maintainers manage this
17+
├── Gemfile # Dependencies for Jekyll site, maintainers manage this
18+
├── Gemfile.lock # Locked dependencies, maintainers manage this
19+
├── README.md # You're reading this file
20+
└── _site/ # Auto-generated, do not edit directly (site build output)
2221
```
2322

2423
### Key Guidelines for Contributors
25-
* **Documentation Location:** All content related to Ocre’s documentation lives in the `_docs` folder. If you're contributing, focus your efforts here.
26-
* **Editing Scope:** Contributors (who are not maintainers) should avoid editing files outside the `_docs` folder. The rest of the structure is primarily for configuration and assets that support the documentation.
27-
* **Assets:** Any images, scripts, or styles related to the documentation should be placed in the assets folder. When adding images, make sure to reference them correctly in your Markdown files.
24+
* **Documentation Location:** All content related to Ocre’s documentation lives in the `docs` folder. If you're contributing, focus your efforts here.
25+
* **Editing Scope:** Contributors (who are not maintainers) should avoid editing files outside the `docs` folder. The rest of the structure is primarily for configuration and assets that support the documentation.
26+
* **Assets:** Any images, scripts, or styles related to the documentation should be placed in the `assets` (a subdirectory of `docs`). When adding images, make sure to reference them correctly in your Markdown files.
2827

2928
This structure and these guidelines help ensure the integrity and maintainability of the Ocre documentation site while allowing contributions to focus on content updates.
3029

@@ -58,7 +57,7 @@ We encourage contributions to improve the documentation! If you’re looking to
5857
```bash
5958
git checkout -b feature/your-feature
6059
```
61-
5. Make your changes. Rembmer to focus on the `_docs` folder for content updates.
60+
5. Make your changes. Rembmer to focus on the `docs` folder for content updates.
6261
6. Preview your changes locally by running:
6362
```bash
6463
bundle exec jekyll serve
@@ -76,7 +75,7 @@ We encourage contributions to improve the documentation! If you’re looking to
7675
git push origin feature/your-feature-name
7776
```
7877

79-
10. Go to the main [Ocre docs repository](https://github.com/project-ocre/project-ocre.github.io) and submit a pull request with a clear description of your changes.
78+
10. Go to the main [Ocre docs repository](https://github.com/project-ocre/project-ocre.github.io) and submit a [pull request](https://github.com/project-ocre/project-ocre.github.io/pulls) with a clear description of your changes.
8079

8180
We'll review your contribution and get back to you as soon as possible. Thank you for helping improve the Ocre documentation!
8281

_config.yml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,24 @@ repository: project-ocre/project-ocre.github.io
66
theme: just-the-docs
77

88
### General
9-
favicon_ico: "assets/favicon.ico"
10-
# Set a path/url to a logo that will be displayed instead of the title
11-
logo: "/assets/logo.png"
9+
# Serve site from docs
10+
source: docs
11+
destination: _site
12+
favicon_ico: "/assets/images/favicon.png"
13+
logo: "/assets/images/logo.png"
14+
# Misc
1215
heading_anchors: true
1316
enable_copy_code_button: true
1417
permalink: pretty
1518

19+
### Defaults paths/content types
20+
defaults:
21+
- scope:
22+
path: "docs" # an empty string here means all files in the project
23+
type: "pages"
24+
values:
25+
layout: "default"
26+
1627
### Exclude files from build
1728
exclude:
1829
- .DS_Store
@@ -73,6 +84,11 @@ callouts:
7384
title: Warning
7485
color: red
7586

87+
### Sidebar
88+
nav_external_links:
89+
- title: Ocre Docs on GitHub
90+
url: https://github.com/project-ocre/project-ocre.github.io
91+
7692
### Header
7793
aux_links:
7894
"Ocre Docs on GitHub":
@@ -87,9 +103,9 @@ back_to_top_text: "Back to top"
87103
footer_content: 'Copyright &copy; 2024 Contributors to Project Ocre, which has been established as <a href="https://lfedge.org/projects/ocre"> Project Ocre a Series of LF Projects</a>, LLC. Distributed by an <a href="https://github.com/project-ocre/project-ocre.github.io/blob/main/LICENSE.txt">Apache 2.0 License.</a>'
88104

89105
#"Edit this page on GitHub" link text
90-
gh_edit_link: true # show or hide edit this page link
91-
gh_edit_link_text: "Edit this page on GitHub"
92-
gh_edit_repository: "https://github.com/project-ocre/project-ocre.github.io" # the github URL for your repo
93-
gh_edit_branch: "main" # the branch that your docs is served from
106+
#gh_edit_link: true # show or hide edit this page link
107+
#gh_edit_link_text: "Edit this page on GitHub"
108+
#gh_edit_repository: "https://github.com/project-ocre/project-ocre.github.io" # the github URL for your repo
109+
#gh_edit_branch: "main" # the branch that your docs is served from
94110
# gh_edit_source: docs # the source that your files originate from
95-
gh_edit_view_mode: "tree" # "tree" or "edit" if you want the user to jump into the editor immediately
111+
#gh_edit_view_mode: "tree" # "tree" or "edit" if you want the user to jump into the editor immediately
File renamed without changes.

0 commit comments

Comments
 (0)