Skip to content

Commit

Permalink
Merge branch 'main' of github.com:runatlantis/atlantis into jz/add-co…
Browse files Browse the repository at this point in the history
…ntributor-guide
  • Loading branch information
chenrui333 committed May 9, 2024
2 parents d00d246 + 1475ee6 commit d92790d
Show file tree
Hide file tree
Showing 7 changed files with 139 additions and 107 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pr-size-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: pr-size

on: [pull_request]

jobs:
labeler:
runs-on: ubuntu-latest
name: Label the PR size
steps:
- uses: codelytv/pr-size-labeler@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
xs_label: 'size/xs'
xs_max_size: '10'
s_label: 'size/s'
s_max_size: '100'
m_label: 'size/m'
m_max_size: '500'
l_label: 'size/l'
l_max_size: '1000'
xl_label: 'size/xl'
# fail_if_xl: 'false'
# message_if_xl: >
# This PR exceeds the recommended size of 1000 lines.
# Please make sure you are NOT addressing multiple issues with one PR.
# Note this PR might be rejected due to its size.
github_api_url: 'https://api.github.com'
files_to_ignore: ''
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ output
.cover
.terraform/
node_modules/
**/.vuepress/*
helm/test-values.yaml
*.swp
golangci-lint
Expand All @@ -30,3 +29,9 @@ tmp-CHANGELOG.md

# draw.io backup files
*.bkp

# vuepress
**/.vuepress/*
!runatlantis.io/.vuepress/config.*
!runatlantis.io/.vuepress/navbar.*
!runatlantis.io/.vuepress/sidebar.*
106 changes: 4 additions & 102 deletions runatlantis.io/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { defaultTheme } from '@vuepress/theme-default';
import { defineUserConfig } from 'vuepress';
import { sitemapPlugin } from '@vuepress/plugin-sitemap';
import { webpackBundler } from '@vuepress/bundler-webpack';
import navbar from "./navbar";
import sidebar from "./sidebar";

const __dirname = getDirname(import.meta.url)

Expand Down Expand Up @@ -85,13 +87,7 @@ export default defineUserConfig({
locales: {
'/': {
selectLanguageName: 'English',
navbar: [
{ text: 'Home', link: '/' },
{ text: 'Guide', link: '/guide/' },
{ text: 'Docs', link: '/docs/' },
{ text: "Contributing", link: "/contributing/" },
{ text: 'Blog', link: 'https://medium.com/runatlantis' },
],
navbar: navbar.en,
},
/*
'/es/': {
Expand All @@ -105,101 +101,7 @@ export default defineUserConfig({
},
*/
},
sidebar: {
'/guide/': [
'/guide/',
'/guide/test-drive',
'/guide/testing-locally',
],
'/docs/': [
{
text: 'Installing Atlantis',
collapsible: true,
children: [
'/docs/installation-guide',
'/docs/requirements',
'/docs/access-credentials',
'/docs/webhook-secrets',
'/docs/deployment',
'/docs/configuring-webhooks',
'/docs/provider-credentials',
]
},
{
text: 'Configuring Atlantis',
collapsible: true,
children: [
{
text: 'Overview',
link: '/docs/configuring-atlantis',
},
'/docs/server-configuration',
'/docs/server-side-repo-config',
'/docs/pre-workflow-hooks',
'/docs/post-workflow-hooks',
'/docs/policy-checking',
'/docs/custom-workflows',
'/docs/repo-level-atlantis-yaml',
'/docs/upgrading-atlantis-yaml',
'/docs/command-requirements',
'/docs/checkout-strategy',
'/docs/terraform-versions',
'/docs/terraform-cloud',
'/docs/using-slack-hooks',
'/docs/stats',
'/docs/faq',
]
},
{
text: 'Using Atlantis',
collapsible: true,
children: [
{
text: 'Overview',
link: '/docs/using-atlantis',
},
'/docs/api-endpoints',
]
},
{
text: 'How Atlantis Works',
collapsible: true,
children: [
{
text: 'Overview',
link: '/docs/how-atlantis-works',
},
'/docs/locking',
'/docs/autoplanning',
'/docs/automerging',
'/docs/security',
]
},
{
text: 'Real-time Terraform Logs',
collapsible: true,
children: [
'/docs/streaming-logs',
]
},
{
text: 'Troubleshooting',
collapsible: true,
children: [
'/docs/troubleshooting-https',
]
}
],
'/contributing/': [
{
text: 'Implementation Details',
children: [
'/contributing/events-controller',
]
},
'/contributing/glossary',
],
},
sidebar: sidebar.en,
repo: 'runatlantis/atlantis',
docsDir: 'runatlantis.io',
editLink: true,
Expand Down
9 changes: 9 additions & 0 deletions runatlantis.io/.vuepress/navbar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const en = [
{ text: 'Home', link: '/' },
{ text: 'Guide', link: '/guide/' },
{ text: 'Docs', link: '/docs/' },
{ text: "Contributing", link: "/contributing/" },
{ text: 'Blog', link: 'https://medium.com/runatlantis' },
];

export default { en };
88 changes: 88 additions & 0 deletions runatlantis.io/.vuepress/sidebar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
const en = {
'/guide/': [
'/guide/',
'/guide/test-drive',
'/guide/testing-locally',
],
'/docs/': [
{
text: 'Installing Atlantis',
collapsible: true,
children: [
'/docs/installation-guide',
'/docs/requirements',
'/docs/access-credentials',
'/docs/webhook-secrets',
'/docs/deployment',
'/docs/configuring-webhooks',
'/docs/provider-credentials',
]
},
{
text: 'Configuring Atlantis',
collapsible: true,
children: [
{
text: 'Overview',
link: '/docs/configuring-atlantis',
},
'/docs/server-configuration',
'/docs/server-side-repo-config',
'/docs/pre-workflow-hooks',
'/docs/post-workflow-hooks',
'/docs/policy-checking',
'/docs/custom-workflows',
'/docs/repo-level-atlantis-yaml',
'/docs/upgrading-atlantis-yaml',
'/docs/command-requirements',
'/docs/checkout-strategy',
'/docs/terraform-versions',
'/docs/terraform-cloud',
'/docs/using-slack-hooks',
'/docs/stats',
'/docs/faq',
]
},
{
text: 'Using Atlantis',
collapsible: true,
children: [
{
text: 'Overview',
link: '/docs/using-atlantis',
},
'/docs/api-endpoints',
]
},
{
text: 'How Atlantis Works',
collapsible: true,
children: [
{
text: 'Overview',
link: '/docs/how-atlantis-works',
},
'/docs/locking',
'/docs/autoplanning',
'/docs/automerging',
'/docs/security',
]
},
{
text: 'Real-time Terraform Logs',
collapsible: true,
children: [
'/docs/streaming-logs',
]
},
{
text: 'Troubleshooting',
collapsible: true,
children: [
'/docs/troubleshooting-https',
]
}
]
};

export default { en };
2 changes: 1 addition & 1 deletion runatlantis.io/docs/server-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ and set `--autoplan-modules` to `false`.
```bash
atlantis server --disable-markdown-folding
# or
ATLANTIS_DISABLE_MARKDOWN_FOLDER=true
ATLANTIS_DISABLE_MARKDOWN_FOLDING=true
```
Disable folding in markdown output using the `<details>` html tag.

Expand Down
6 changes: 3 additions & 3 deletions runatlantis.io/docs/using-slack-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ webhooks:
workspace-regex: .*
branch-regex: .*
kind: slack
channel: my-channel
channel: my-channel-id
```
If you are deploying Atlantis as a Helm chart, this can be implemented via the `config` parameter available for [chart customizations](https://github.com/runatlantis/helm-charts#customization):
Expand All @@ -59,9 +59,9 @@ config: |
workspace-regex: .*
branch-regex: .*
kind: slack
channel: my-channel
channel: my-channel-id
```
The `apply` event information will be sent to the `my-channel` Slack channel.
The `apply` event information will be sent to the `my-channel-id` Slack channel.

0 comments on commit d92790d

Please sign in to comment.