Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publish contributor docs with mkdocs #19883

Merged
merged 3 commits into from
Jan 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish docs via GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
name: Publish Contributor GitHub Pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Publish
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_FILE: mkdocs.yml
35 changes: 18 additions & 17 deletions contributing/README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,30 @@ More granular documentation covers how these fit together - and the most common

Basics:

* [High-level overview of the Provider](topics/high-level-overview.md).
* [Building the Provider](topics/building-the-provider.md).
* [Running the Tests](topics/running-the-tests.md).
* [Our recommendations for opening a Pull Request](topics/guide-opening-a-pr.md).
* [Debugging the Provider](topics/debugging-the-provider.md).
* [Frequently Asked Questions](topics/frequently-asked-questions.md).
* [High-level overview of the Provider](topics/high-level-overview.md)
* [Building the Provider](topics/building-the-provider.md)
* [Running the Tests](topics/running-the-tests.md)
* [Debugging the Provider](topics/debugging-the-provider.md)
* [Frequently Asked Questions](topics/frequently-asked-questions.md)
* [Opening a PR](topics/guide-opening-a-pr.md)

Common Topics/Guides:

* [Adding a new Service Package](topics/guide-new-service-package.md).
* [Adding a new Data Source](topics/guide-new-data-source.md).
* [Adding a new Resource](topics/guide-new-resource.md).
* [Adding fields to an existing Data Source](topics/guide-new-fields-to-data-source.md).
* [Adding fields to an existing Resource](topics/guide-new-fields-to-resource.md).
* [Opening a PR](topics/guide-opening-a-pr.md).
* [Adding a new Service Package](topics/guide-new-service-package.md)
* [Adding a new Data Source](topics/guide-new-data-source.md)
* [Adding a new Resource](topics/guide-new-resource.md)
* [Adding fields to an existing Data Source](topics/guide-new-fields-to-data-source.md)
* [Adding fields to an existing Resource](topics/guide-new-fields-to-resource.md)
* [When to create a new Resource vs Inline Block](topics/guide-new-resource-vs-inline.md)

References:

* [Acceptance Testing](topics/reference-acceptance-testing.md).
* [Working with Errors](topics/reference-errors.md).
* [Glossary](topics/reference-glossary.md).
* [Naming](topics/reference-naming.md).
* [Acceptance Testing](topics/reference-acceptance-testing.md)
* [Working with Errors](topics/reference-errors.md)
* [Glossary](topics/reference-glossary.md)
* [Naming](topics/reference-naming.md)
* [Schema Design](topics/schema-design-considerations.md)

Maintainer specific:

* [Updates to the Changelog](topics/maintainer-changelog.md).
* [Updates to the Changelog](topics/maintainer-changelog.md)
3 changes: 3 additions & 0 deletions contributing/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.md-footer__inner:not([hidden]) {
display: none
}
Binary file added contributing/images/hashicorp-black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added contributing/images/hashicorp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified contributing/topics/building-the-provider.md
100644 → 100755
Empty file.
Empty file modified contributing/topics/debugging-the-provider.md
100644 → 100755
Empty file.
Empty file modified contributing/topics/frequently-asked-questions.md
100644 → 100755
Empty file.
Empty file modified contributing/topics/guide-new-data-source.md
100644 → 100755
Empty file.
Empty file modified contributing/topics/guide-new-fields-to-data-source.md
100644 → 100755
Empty file.
Empty file modified contributing/topics/guide-new-fields-to-resource.md
100644 → 100755
Empty file.
Empty file modified contributing/topics/guide-new-resource-vs-inline.md
100644 → 100755
Empty file.
Empty file modified contributing/topics/guide-new-resource.md
100644 → 100755
Empty file.
Empty file modified contributing/topics/guide-new-service-package.md
100644 → 100755
Empty file.
Empty file modified contributing/topics/guide-opening-a-pr.md
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion contributing/topics/high-level-overview.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Each of these Data Sources and Resources has both Acceptance Tests and Documenta

The Azure Provider is a large codebase which has evolved over time - but tends to follow consistent patterns for the most-part.

The Provider is split up into Service Packages (see [terminology](basic-glossary.md)) - with some other logic sprinkled across several packages.
The Provider is split up into Service Packages (see [terminology](reference-glossary.md)) - with some other logic sprinkled across several packages.

At a high-level, the Provider structure is:

Expand Down
Empty file modified contributing/topics/maintainer-changelog.md
100644 → 100755
Empty file.
Empty file modified contributing/topics/reference-acceptance-testing.md
100644 → 100755
Empty file.
Empty file modified contributing/topics/reference-errors.md
100644 → 100755
Empty file.
Empty file modified contributing/topics/reference-glossary.md
100644 → 100755
Empty file.
Empty file modified contributing/topics/reference-naming.md
100644 → 100755
Empty file.
Empty file modified contributing/topics/running-the-tests.md
100644 → 100755
Empty file.
Empty file modified contributing/topics/schema-design-considerations.md
100644 → 100755
Empty file.
67 changes: 67 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
site_name: Terraform AzureRM Provider - Contributor Guide
site_description: 'Contributor documentation and reference for the Terraform AzureRM Provider'
copyright: HashiCorp

repo_name: hashicorp/terraform-provider-azurerm
repo_url: https://github.com/hashicorp/terraform-provider-azurerm
edit_uri: "https://github.com/hashicorp/terraform-provider-azurerm/tree/main/contributing"

docs_dir: contributing
site_dir: site

dev_addr: 127.0.0.1:47000

nav:
- Welcome: README.md
- Basics:
- Overview of the Provider: topics/high-level-overview.md
- Building the Provider: topics/building-the-provider.md
- Debugging the Provider: topics/debugging-the-provider.md
- Running Tests: topics/running-the-tests.md
- Opening a Pull Request: topics/guide-opening-a-pr.md
- Guides:
- Adding a new Service Package: topics/guide-new-service-package.md
- Adding a new Data Source: topics/guide-new-data-source.md
- Adding a new Resource: topics/guide-new-resource.md
- Adding fields to an existing Data Source: topics/guide-new-fields-to-data-source.md
- Adding fields to an existing Resource: topics/guide-new-fields-to-resource.md
- When to create a new Resource vs Inline Block: topics/guide-new-resource-vs-inline.md
- Reference:
- Acceptance Testing: topics/reference-acceptance-testing.md
- Working with Errors: topics/reference-errors.md
- Naming: topics/reference-naming.md
- Schema Design: topics/schema-design-considerations.md
- Glossary: topics/reference-glossary.md
- Maintainers:
- Updates to the Changelog: topics/maintainer-changelog.md
- FAQ: topics/frequently-asked-questions.md

theme:
name: material
logo: images/hashicorp.png
favicon: images/hashicorp-black.png
palette:
scheme: hashicorp
primary: black
accent: blue
icon:
repo: fontawesome/brands/github
font: false
features:
- navigation.instant
- content.tabs.link

plugins:
- search:
lang:
- en

markdown_extensions:
- pymdownx.highlight
- pymdownx.superfences
- pymdownx.inlinehilite
- toc:
permalink: "#"

extra_css:
- extra.css