Skip to content

Commit

Permalink
Cleaned up left nav
Browse files Browse the repository at this point in the history
  • Loading branch information
merill committed Mar 16, 2024
1 parent 4b492c7 commit ca93228
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 31 deletions.
4 changes: 1 addition & 3 deletions build/Build-CommandReference.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Description: This script is used to generate the 'Command Reference' section of the Maester docusaurus site
# * This command needs to be run from the root of the project. e.g. ./build/Build-CommandReference.ps1
# * The New-DocusaurusHelp command deletes and recreates the ./docs/docs/commands folder
# * The Copy-Item command copies the ./docs/docs-templates/commands-index.md file to ./docs/docs/commands/index.md
# * If running the docusaurus site locally you will need to stop and start Docusaurus to clear the 'Module not found' errors after running this command

if (-not (Get-Module Alt3.Docusaurus.Powershell -ListAvailable)) {
Expand All @@ -10,5 +9,4 @@ if (-not (Get-Module Alt3.Docusaurus.Powershell -ListAvailable)) {
}
Import-Module Alt3.Docusaurus.Powershell
Import-Module PlatyPS
New-DocusaurusHelp -Module ./src/Maester.psm1 -DocsFolder ./docs/docs -NoPlaceHolderExamples -EditUrl https://github.com/maester365/maester/blob/main/src/public/
Copy-Item ./docs/docs-templates/commands-index.md ./docs/docs/commands/index.md
New-DocusaurusHelp -Module ./src/Maester.psm1 -DocsFolder ./docs/docs -NoPlaceHolderExamples -EditUrl https://github.com/maester365/maester/blob/main/src/public/
1 change: 0 additions & 1 deletion docs/docs-templates/readme.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
id: automation-overview
sidebar_label: Overview
sidebar_position: 1
title: Set up Maester to automatically run daily
---

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/commands-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import DocCardList from '@theme/DocCardList';
## Overview
This page lists the commands available in the Maester module and provides a reference of the helper methods that have been created to help you define and run tests on your Microsoft 365 cloud configuration.
See the [writing Maester tests](../writing-tests) guide for more information on how to write your own tests using these commands.
See the [writing Maester tests](./writing-tests) guide for more information on how to write your own tests using these commands.
## Maester Commands
<DocCardList />
Expand Down
19 changes: 0 additions & 19 deletions docs/docs/commands/index.md

This file was deleted.

6 changes: 5 additions & 1 deletion docs/docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ sidebar_position: 5
title: Contributing
---

import TOCInline from '@theme/TOCInline';

# Contributing

<TOCInline toc={toc} />

## Contributing to docs

Simple edits can be made in the GitHub UI by clicking the 'Edit this page' at the bottom of each page or you can browse to the [docs](https://github.com/maester365/maester/tree/main/docs/docs) folder on GitHub.
Expand Down Expand Up @@ -45,7 +49,7 @@ You will now be able to edit add and edit markdown files in the ./docs/docs fold
- You can search for icons at [Iconify](https://icon-sets.iconify.design/) and include them in the markdown. See the [Daily Automation](https://measter.dev/docs/automation/) page for examples.
- The `Command Reference` section is auto-generated. To update the documentation for this, the .ps1 file for the command needs to be updated with comment-based documentation.

## Maester Developer Guide
## Maester cmdlet dev guide

### Simple debugging

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/tests/index.md → docs/docs/tests/@readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
id: tests
id: tests-overview
title: Maester - Out of the box tests
sidebar_label: Overview
sidebar_position: 1
Expand Down
2 changes: 1 addition & 1 deletion docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const config = {
{
type: "doc",
position: "left",
docId: "tests/tests",
docId: "tests/tests-overview",
label: "Tests",
},
{
Expand Down
5 changes: 1 addition & 4 deletions docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ const sidebars = {
type: "category",
label: "Daily Automation",
collapsed: false,
items: [
{ type: "doc", id: "automation-overview", label: "Overview" },
{ type: "autogenerated", dirName: "automation" },
],
items: [{ type: "autogenerated", dirName: "automation" }],
},
"contributing",
{
Expand Down

0 comments on commit ca93228

Please sign in to comment.