From 0b0d03cda2740beaa6c2b24fe126181fcb0d5b86 Mon Sep 17 00:00:00 2001 From: Gavin Bunney <409207+gavinbunney@users.noreply.github.com> Date: Wed, 14 Jul 2021 17:47:45 -0700 Subject: [PATCH] Port to GitHub actions & publish to Terraform registry (#39) * Port to GitHub actions * Fix * Make docs terraform registry compatible --- .github/workflows/build.yml | 92 + .github/workflows/tag.yml | 40 + .go-version | 1 - .goreleaser.yml | 46 + .travis.yml | 40 - Makefile | 30 +- .../bitbucketserver_application_properties.md | 5 +- .../data-sources/bitbucketserver_cluster.md | 5 +- ...tbucketserver_global_permissions_groups.md | 5 +- ...itbucketserver_global_permissions_users.md | 0 .../bitbucketserver_group_users.md | 5 +- .../data-sources/bitbucketserver_groups.md | 5 +- .../data-sources/bitbucketserver_plugin.md | 5 +- .../bitbucketserver_project_hooks.md | 5 +- ...bucketserver_project_permissions_groups.md | 5 +- ...tbucketserver_project_permissions_users.md | 5 +- .../bitbucketserver_repository_hooks.md | 5 +- ...ketserver_repository_permissions_groups.md | 5 +- ...cketserver_repository_permissions_users.md | 5 +- .../data-sources/bitbucketserver_user.md | 5 +- docusaurus/docs/provider.md => docs/index.md | 49 +- .../resources/bitbucketserver_banner.md | 5 +- ...ucketserver_default_reviewers_condition.md | 5 +- ...itbucketserver_global_permissions_group.md | 5 +- ...bitbucketserver_global_permissions_user.md | 5 +- .../resources/bitbucketserver_group.md | 5 +- .../resources/bitbucketserver_license.md | 5 +- .../resources/bitbucketserver_mail_server.md | 5 +- .../resources/bitbucketserver_plugin.md | 5 +- .../bitbucketserver_plugin_config.md | 5 +- .../resources/bitbucketserver_project.md | 5 +- .../resources/bitbucketserver_project_hook.md | 5 +- ...tbucketserver_project_permissions_group.md | 5 +- ...itbucketserver_project_permissions_user.md | 5 +- .../resources/bitbucketserver_repository.md | 5 +- .../bitbucketserver_repository_hook.md | 5 +- ...cketserver_repository_permissions_group.md | 5 +- ...ucketserver_repository_permissions_user.md | 5 +- .../resources/bitbucketserver_user.md | 5 +- .../bitbucketserver_user_access_token.md | 5 +- .../resources/bitbucketserver_user_group.md | 5 +- docusaurus/.dockerignore | 2 - docusaurus/Dockerfile | 10 - docusaurus/docker-compose.yml | 18 - docusaurus/website/README.md | 193 - docusaurus/website/core/Footer.js | 20 - docusaurus/website/i18n/en.json | 128 - docusaurus/website/package.json | 17 - docusaurus/website/sidebars.json | 45 - docusaurus/website/siteConfig.js | 61 - docusaurus/website/static/css/custom.css | 39 - docusaurus/website/static/img/favicon.png | Bin 1104 -> 0 bytes docusaurus/website/static/index.html | 14 - docusaurus/website/yarn.lock | 6905 ----------------- go.mod | 2 +- 55 files changed, 265 insertions(+), 7652 deletions(-) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/tag.yml delete mode 100644 .go-version create mode 100644 .goreleaser.yml delete mode 100644 .travis.yml rename docusaurus/docs/data_application_properties.md => docs/data-sources/bitbucketserver_application_properties.md (80%) rename docusaurus/docs/data_cluster.md => docs/data-sources/bitbucketserver_cluster.md (92%) rename docusaurus/docs/data_global_permissions_groups.md => docs/data-sources/bitbucketserver_global_permissions_groups.md (85%) rename docusaurus/docs/data_global_permissions_users.md => docs/data-sources/bitbucketserver_global_permissions_users.md (100%) rename docusaurus/docs/data_group_users.md => docs/data-sources/bitbucketserver_group_users.md (88%) rename docusaurus/docs/data_groups.md => docs/data-sources/bitbucketserver_groups.md (88%) rename docusaurus/docs/data_plugin.md => docs/data-sources/bitbucketserver_plugin.md (96%) rename docusaurus/docs/data_project_hooks.md => docs/data-sources/bitbucketserver_project_hooks.md (95%) rename docusaurus/docs/data_project_permissions_groups.md => docs/data-sources/bitbucketserver_project_permissions_groups.md (88%) rename docusaurus/docs/data_project_permissions_users.md => docs/data-sources/bitbucketserver_project_permissions_users.md (88%) rename docusaurus/docs/data_repository_hooks.md => docs/data-sources/bitbucketserver_repository_hooks.md (95%) rename docusaurus/docs/data_repository_permissions_groups.md => docs/data-sources/bitbucketserver_repository_permissions_groups.md (89%) rename docusaurus/docs/data_repository_permissions_users.md => docs/data-sources/bitbucketserver_repository_permissions_users.md (89%) rename docusaurus/docs/data_user.md => docs/data-sources/bitbucketserver_user.md (83%) rename docusaurus/docs/provider.md => docs/index.md (57%) rename docusaurus/docs/resource_banner.md => docs/resources/bitbucketserver_banner.md (90%) rename docusaurus/docs/resource_default_reviewers_condition.md => docs/resources/bitbucketserver_default_reviewers_condition.md (95%) rename docusaurus/docs/resource_global_permissions_group.md => docs/resources/bitbucketserver_global_permissions_group.md (84%) rename docusaurus/docs/resource_global_permissions_user.md => docs/resources/bitbucketserver_global_permissions_user.md (85%) rename docusaurus/docs/resource_group.md => docs/resources/bitbucketserver_group.md (86%) rename docusaurus/docs/resource_license.md => docs/resources/bitbucketserver_license.md (92%) rename docusaurus/docs/resource_mail_server.md => docs/resources/bitbucketserver_mail_server.md (92%) rename docusaurus/docs/resource_plugin.md => docs/resources/bitbucketserver_plugin.md (97%) rename docusaurus/docs/resource_plugin_config.md => docs/resources/bitbucketserver_plugin_config.md (87%) rename docusaurus/docs/resource_project.md => docs/resources/bitbucketserver_project.md (91%) rename docusaurus/docs/resource_project_hook.md => docs/resources/bitbucketserver_project_hook.md (88%) rename docusaurus/docs/resource_project_permissions_group.md => docs/resources/bitbucketserver_project_permissions_group.md (87%) rename docusaurus/docs/resource_project_permissions_user.md => docs/resources/bitbucketserver_project_permissions_user.md (87%) rename docusaurus/docs/resource_repository.md => docs/resources/bitbucketserver_repository.md (95%) rename docusaurus/docs/resource_repository_hook.md => docs/resources/bitbucketserver_repository_hook.md (89%) rename docusaurus/docs/resource_repository_permissions_group.md => docs/resources/bitbucketserver_repository_permissions_group.md (88%) rename docusaurus/docs/resource_repository_permissions_user.md => docs/resources/bitbucketserver_repository_permissions_user.md (88%) rename docusaurus/docs/resource_user.md => docs/resources/bitbucketserver_user.md (93%) rename docusaurus/docs/resource_user_access_token.md => docs/resources/bitbucketserver_user_access_token.md (94%) rename docusaurus/docs/resource_user_group.md => docs/resources/bitbucketserver_user_group.md (86%) delete mode 100755 docusaurus/.dockerignore delete mode 100755 docusaurus/Dockerfile delete mode 100755 docusaurus/docker-compose.yml delete mode 100755 docusaurus/website/README.md delete mode 100755 docusaurus/website/core/Footer.js delete mode 100644 docusaurus/website/i18n/en.json delete mode 100644 docusaurus/website/package.json delete mode 100755 docusaurus/website/sidebars.json delete mode 100644 docusaurus/website/siteConfig.js delete mode 100755 docusaurus/website/static/css/custom.css delete mode 100644 docusaurus/website/static/img/favicon.png delete mode 100644 docusaurus/website/static/index.html delete mode 100644 docusaurus/website/yarn.lock diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5c3195c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,92 @@ +name: "Build" + +on: + push: + branches: [master] + pull_request: + branches: [master] +jobs: + build: + runs-on: ubuntu-latest + env: + GO111MODULE: on + steps: + - uses: actions/checkout@v2 + - name: Set up GO 1.16.x + uses: actions/setup-go@v1 + with: + go-version: '1.16' + - run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + - name: Setup Environment + run: make ci-build-setup + - name: Build + run: make build + test: + runs-on: ubuntu-latest + env: + GO111MODULE: on + steps: + - uses: actions/checkout@v2 + - name: Set up GO 1.16.x + uses: actions/setup-go@v1 + with: + go-version: '1.16' + - run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + - name: Setup Environment + run: make ci-build-setup + - name: Run tests + run: make test + testacc: + runs-on: ubuntu-latest + env: + GO111MODULE: on + steps: + - uses: actions/checkout@v2 + - name: Set up GO 1.16.x + uses: actions/setup-go@v1 + with: + go-version: '1.16' + - run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + - name: Login to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Setup Environment + run: make ci-build-setup + - name: Start bitbucket server + run: make bitbucket-start + - name: Run acceptance tests + run: BITBUCKET_SERVER=http://localhost:7990 BITBUCKET_USERNAME=admin BITBUCKET_PASSWORD=admin make testacc + - name: Stop bitbucket server + run: make bitbucket-stop + fmtcheck: + runs-on: ubuntu-latest + env: + GO111MODULE: on + steps: + - uses: actions/checkout@v2 + - name: Set up GO 1.16.x + uses: actions/setup-go@v1 + with: + go-version: '1.16' + - run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + - name: Setup Environment + run: make ci-build-setup + - name: Format check + run: make fmtcheck + vet: + runs-on: ubuntu-latest + env: + GO111MODULE: on + steps: + - uses: actions/checkout@v2 + - name: Set up GO 1.16.x + uses: actions/setup-go@v1 + with: + go-version: '1.16' + - run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + - name: Setup Environment + run: make ci-build-setup + - name: Run vet + run: make vet diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml new file mode 100644 index 0000000..908d9d9 --- /dev/null +++ b/.github/workflows/tag.yml @@ -0,0 +1,40 @@ +name: Release + +on: + push: + tags: + - "v*" + +permissions: + contents: write + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.16 + - name: Import GPG key + id: import_gpg + uses: crazy-max/ghaction-import-gpg@v3 + with: + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + passphrase: ${{ secrets.GPG_PASSPHRASE }} + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} + - name: Upload assets + uses: actions/upload-artifact@v2 + with: + path: dist/* diff --git a/.go-version b/.go-version deleted file mode 100644 index 41c8a73..0000000 --- a/.go-version +++ /dev/null @@ -1 +0,0 @@ -1.12.7 diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..404bed5 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,46 @@ +before: + hooks: + - go mod tidy +builds: + - env: + # goreleaser does not work with CGO, it could also complicate + # usage by users in CI/CD systems like Terraform Cloud where + # they are unable to install libraries. + - CGO_ENABLED=0 + mod_timestamp: '{{ .CommitTimestamp }}' + flags: + - -trimpath + ldflags: + - '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}' + goos: + - windows + - linux + - darwin + goarch: + - amd64 + - '386' + - arm + - arm64 + ignore: + - goos: darwin + goarch: '386' + binary: '{{ .ProjectName }}_v{{ .Version }}' +archives: + - id: zip + format: zip + name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' +checksum: + name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS' + algorithm: sha256 +signs: + - artifacts: checksum + args: + - "--batch" + - "--local-user" + - "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key + - "--output" + - "${signature}" + - "--detach-sign" + - "${artifact}" +release: + draft: false diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 70374cf..0000000 --- a/.travis.yml +++ /dev/null @@ -1,40 +0,0 @@ -services: - - docker -language: go -sudo: required -go: - - "1.12.x" -dist: xenial - -env: - - GOPROXY=https://gocenter.io - -install: - - bash scripts/gogetcookie.sh - -script: - - bash scripts/start-docker-compose.sh - - make build - - BITBUCKET_SERVER=http://localhost:7990 BITBUCKET_USERNAME=admin BITBUCKET_PASSWORD=admin make testacc - -after_success: - - bash <(curl -s https://codecov.io/bash) - -matrix: - fast_finish: true - allow_failures: - - go: tip - -before_deploy: - - make build-binaries - -deploy: - provider: releases - skip_cleanup: true - api_key: - secure: oB4MFNo958H/bknOkG+yTQ68V0A95xRJPk8xUIrfbL+n1OJIaR3577YpVi64I/kYCxSdjSh3c99p1DP7+hKBDF8B7CQ+slVtAGh5zQ6cWsv5PDX3CWN26fixIUV2/uTdn1FWDrW9a+2JVfhBfoW/H68KtdPp6L7ZD4cgUHRlgO9buzw0Nxvuom7Aii4lg0LyxjbqEckubR/tExVu3P0k16W8LVv/ZnI7P6oqsczgGJvn4EOZw1KiKprhmdTuWELBDr9ShjMBFCyi04cSn/Ar7JG9DPUE1xxo1MNmHvckGBzFXbYOTKik3qQ0olwG3XeAhyoNIfce3siWjVIfPm9F2491sAbCXka5H7UmJkqw7k6eR4UtrS6Zeolti/4ioT/7rJcyO438Za6xYQmtkBPBCE2mAWSw/b42QGbsi5PPnRBYID5Solx+74Fx855/TMqJXpHm6Qq3/+zIatBRbVqyzzJsdI8rUA6gqudE4DN9w50qOYENP2WxodbORuzW7wZzK0Eyl2XkzJ1osfr824eM7FekUZqyIDhH9VnD044itqcE5xhYI1mz84AY0vGCPB0DbJZH+qrM9e39huL/CoauN/FgOBFoH9e/g5K+bTSZSUFKh3BIG6moBNS8apDoa5+c8c7/A3U2Ero2F4Y6v2sLK36w7sCUmhyPHPowAwZf7yw= - file_glob: true - file: bin/* - on: - repo: gavinbunney/terraform-provider-bitbucketserver - tags: true diff --git a/Makefile b/Makefile index 397b571..abca9db 100644 --- a/Makefile +++ b/Makefile @@ -25,11 +25,17 @@ testacc: fmtcheck ulimit -n 1024; TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m -count=1 testacc-bitbucket: fmtcheck - @sh scripts/start-docker-compose.sh + @bash scripts/start-docker-compose.sh #The ulimit command is required to allow the tests to open more than the default 256 files as set on MacOS. The tests will fail without this. It must be done as one #command otherwise the setting is lost ulimit -n 1024; TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m -count=1 - @sh scripts/stop-docker-compose.sh + @bash scripts/stop-docker-compose.sh + +bitbucket-start: + @bash scripts/start-docker-compose.sh + +bitbucket-stop: + @bash scripts/stop-docker-compose.sh vet: @echo "go vet ." @@ -44,13 +50,13 @@ fmt: gofmt -w $(GOFMT_FILES) fmtcheck: - @sh -c "'$(CURDIR)/scripts/gofmtcheck.sh'" + @bash -c "'$(CURDIR)/scripts/gofmtcheck.sh'" errcheck: - @sh -c "'$(CURDIR)/scripts/errcheck.sh'" + @bash -c "'$(CURDIR)/scripts/errcheck.sh'" build-binaries: - @sh -c "'$(CURDIR)/scripts/build.sh'" + @bash -c "'$(CURDIR)/scripts/build.sh'" test-compile: @if [ "$(TEST)" = "./..." ]; then \ @@ -60,11 +66,11 @@ test-compile: fi go test -c $(TEST) $(TESTARGS) -website-serve: - @cd docusaurus/website && npm start - -website-publish: - @cd docusaurus/website && npm run build - @cd docusaurus/website && CURRENT_BRANCH=master USE_SSH=true npm run publish-gh-pages +ci-build-setup: + sudo rm /usr/local/bin/docker-compose + curl -L https://github.com/docker/compose/releases/download/1.25.4/docker-compose-`uname -s`-`uname -m` > docker-compose + chmod +x docker-compose + sudo mv docker-compose /usr/local/bin + bash scripts/gogetcookie.sh -.PHONY: build test testacc vet fmt fmtcheck errcheck test-compile build-binaries website-serve website-publish +.PHONY: build test testacc vet fmt fmtcheck errcheck test-compile build-binaries ci-build-setup bitbucket-start bitbucket-stop diff --git a/docusaurus/docs/data_application_properties.md b/docs/data-sources/bitbucketserver_application_properties.md similarity index 80% rename from docusaurus/docs/data_application_properties.md rename to docs/data-sources/bitbucketserver_application_properties.md index 5d36550..167151c 100644 --- a/docusaurus/docs/data_application_properties.md +++ b/docs/data-sources/bitbucketserver_application_properties.md @@ -1,7 +1,4 @@ ---- -id: data_bitbucketserver_application_properties -title: bitbucketserver_application_properties ---- +# Data Source: bitbucketserver_application_properties This data source allows you to retrieve version information and other application properties of Bitbucket Server. diff --git a/docusaurus/docs/data_cluster.md b/docs/data-sources/bitbucketserver_cluster.md similarity index 92% rename from docusaurus/docs/data_cluster.md rename to docs/data-sources/bitbucketserver_cluster.md index 2fdaa72..eb153d1 100644 --- a/docusaurus/docs/data_cluster.md +++ b/docs/data-sources/bitbucketserver_cluster.md @@ -1,7 +1,4 @@ ---- -id: data_bitbucketserver_cluster -title: bitbucketserver_cluster ---- +# Data Source: bitbucketserver_cluster Gets information about the nodes that currently make up the Bitbucket cluster. diff --git a/docusaurus/docs/data_global_permissions_groups.md b/docs/data-sources/bitbucketserver_global_permissions_groups.md similarity index 85% rename from docusaurus/docs/data_global_permissions_groups.md rename to docs/data-sources/bitbucketserver_global_permissions_groups.md index 1875889..57f867a 100644 --- a/docusaurus/docs/data_global_permissions_groups.md +++ b/docs/data-sources/bitbucketserver_global_permissions_groups.md @@ -1,7 +1,4 @@ ---- -id: data_bitbucketserver_global_permissions_groups -title: bitbucketserver_global_permissions_groups ---- +# Data Source: bitbucketserver_global_permissions_groups Retrieve a list of groups that have been granted at least one global permission. diff --git a/docusaurus/docs/data_global_permissions_users.md b/docs/data-sources/bitbucketserver_global_permissions_users.md similarity index 100% rename from docusaurus/docs/data_global_permissions_users.md rename to docs/data-sources/bitbucketserver_global_permissions_users.md diff --git a/docusaurus/docs/data_group_users.md b/docs/data-sources/bitbucketserver_group_users.md similarity index 88% rename from docusaurus/docs/data_group_users.md rename to docs/data-sources/bitbucketserver_group_users.md index a42717d..76a5475 100644 --- a/docusaurus/docs/data_group_users.md +++ b/docs/data-sources/bitbucketserver_group_users.md @@ -1,7 +1,4 @@ ---- -id: data_bitbucketserver_group_users -title: bitbucketserver_group_users ---- +# Data Source: bitbucketserver_group_users Retrieve a list of users for a specific group. diff --git a/docusaurus/docs/data_groups.md b/docs/data-sources/bitbucketserver_groups.md similarity index 88% rename from docusaurus/docs/data_groups.md rename to docs/data-sources/bitbucketserver_groups.md index 055a613..00ac608 100644 --- a/docusaurus/docs/data_groups.md +++ b/docs/data-sources/bitbucketserver_groups.md @@ -1,7 +1,4 @@ ---- -id: data_bitbucketserver_groups -title: bitbucketserver_groups ---- +# Data Source: bitbucketserver_groups This data source allows you to retrieve a list of groups, optionally matching the supplied `filter`. diff --git a/docusaurus/docs/data_plugin.md b/docs/data-sources/bitbucketserver_plugin.md similarity index 96% rename from docusaurus/docs/data_plugin.md rename to docs/data-sources/bitbucketserver_plugin.md index 600f019..7d88dda 100644 --- a/docusaurus/docs/data_plugin.md +++ b/docs/data-sources/bitbucketserver_plugin.md @@ -1,7 +1,4 @@ ---- -id: data_bitbucketserver_plugin -title: bitbucketserver_plugin ---- +# Data Source: bitbucketserver_plugin This data source allows you to retrieve installed plugin information and license details. diff --git a/docusaurus/docs/data_project_hooks.md b/docs/data-sources/bitbucketserver_project_hooks.md similarity index 95% rename from docusaurus/docs/data_project_hooks.md rename to docs/data-sources/bitbucketserver_project_hooks.md index ee1aec2..b918548 100644 --- a/docusaurus/docs/data_project_hooks.md +++ b/docs/data-sources/bitbucketserver_project_hooks.md @@ -1,7 +1,4 @@ ---- -id: data_bitbucketserver_project_hooks -title: bitbucketserver_project_hooks ---- +# Data Source: bitbucketserver_project_hooks Retrieve a list of project hooks and their status' for the specified project. diff --git a/docusaurus/docs/data_project_permissions_groups.md b/docs/data-sources/bitbucketserver_project_permissions_groups.md similarity index 88% rename from docusaurus/docs/data_project_permissions_groups.md rename to docs/data-sources/bitbucketserver_project_permissions_groups.md index 8e00a98..91870e0 100644 --- a/docusaurus/docs/data_project_permissions_groups.md +++ b/docs/data-sources/bitbucketserver_project_permissions_groups.md @@ -1,7 +1,4 @@ ---- -id: data_bitbucketserver_project_permissions_groups -title: bitbucketserver_project_permissions_groups ---- +# Data Source: bitbucketserver_project_permissions_groups Retrieve a list of groups that have been granted at least one project level permission to the specified project. diff --git a/docusaurus/docs/data_project_permissions_users.md b/docs/data-sources/bitbucketserver_project_permissions_users.md similarity index 88% rename from docusaurus/docs/data_project_permissions_users.md rename to docs/data-sources/bitbucketserver_project_permissions_users.md index e3c0dd2..93900c1 100644 --- a/docusaurus/docs/data_project_permissions_users.md +++ b/docs/data-sources/bitbucketserver_project_permissions_users.md @@ -1,7 +1,4 @@ ---- -id: data_bitbucketserver_project_permissions_users -title: bitbucketserver_project_permissions_users ---- +# Data Source: bitbucketserver_project_permissions_users Retrieve a list of users that have been granted at least one permission for the specified project. diff --git a/docusaurus/docs/data_repository_hooks.md b/docs/data-sources/bitbucketserver_repository_hooks.md similarity index 95% rename from docusaurus/docs/data_repository_hooks.md rename to docs/data-sources/bitbucketserver_repository_hooks.md index 4f49735..ca85f2b 100644 --- a/docusaurus/docs/data_repository_hooks.md +++ b/docs/data-sources/bitbucketserver_repository_hooks.md @@ -1,7 +1,4 @@ ---- -id: data_bitbucketserver_repository_hooks -title: bitbucketserver_repository_hooks ---- +# Data Source: bitbucketserver_repository_hooks Retrieve a list of repository hooks and their status' for the specified repo. diff --git a/docusaurus/docs/data_repository_permissions_groups.md b/docs/data-sources/bitbucketserver_repository_permissions_groups.md similarity index 89% rename from docusaurus/docs/data_repository_permissions_groups.md rename to docs/data-sources/bitbucketserver_repository_permissions_groups.md index f94ea92..931f6f8 100644 --- a/docusaurus/docs/data_repository_permissions_groups.md +++ b/docs/data-sources/bitbucketserver_repository_permissions_groups.md @@ -1,7 +1,4 @@ ---- -id: data_bitbucketserver_repository_permissions_groups -title: bitbucketserver_repository_permissions_groups ---- +# Data Source: bitbucketserver_repository_permissions_groups Retrieve a list of groups that have been granted at least one repository level permission to the specified repo. diff --git a/docusaurus/docs/data_repository_permissions_users.md b/docs/data-sources/bitbucketserver_repository_permissions_users.md similarity index 89% rename from docusaurus/docs/data_repository_permissions_users.md rename to docs/data-sources/bitbucketserver_repository_permissions_users.md index 35114e1..cc0ad76 100644 --- a/docusaurus/docs/data_repository_permissions_users.md +++ b/docs/data-sources/bitbucketserver_repository_permissions_users.md @@ -1,7 +1,4 @@ ---- -id: data_bitbucketserver_repository_permissions_users -title: bitbucketserver_repository_permissions_users ---- +# Data Source: bitbucketserver_repository_permissions_users Retrieve a list of users that have been granted at least one permission for the specified repository. diff --git a/docusaurus/docs/data_user.md b/docs/data-sources/bitbucketserver_user.md similarity index 83% rename from docusaurus/docs/data_user.md rename to docs/data-sources/bitbucketserver_user.md index 1b5f458..5fb6b9b 100644 --- a/docusaurus/docs/data_user.md +++ b/docs/data-sources/bitbucketserver_user.md @@ -1,7 +1,4 @@ ---- -id: data_bitbucketserver_user -title: bitbucketserver_user ---- +# Data Source: bitbucketserver_user This data source allows you to retrieve Bitbucket user details. diff --git a/docusaurus/docs/provider.md b/docs/index.md similarity index 57% rename from docusaurus/docs/provider.md rename to docs/index.md index fa27e2e..3f47bcd 100755 --- a/docusaurus/docs/provider.md +++ b/docs/index.md @@ -1,33 +1,54 @@ ---- -id: provider -title: Getting Started ---- +# Bitbucket Server Provider [Bitbucket Server](https://www.atlassian.com/software/bitbucket) is the self-hosted version of Bitbucket. Whilst terraform provides a default bitbucket provider, this only works for _Bitbucket Cloud_ - this provider unlocks the power of terraform to manage your self-hosted Bitbucket Server instance. -## Provider Installation +## Installation +### Terraform 0.13+ -### Install latest version +The provider can be installed and managed automatically by Terraform. Sample `versions.tf` file : + +```hcl +terraform { + required_version = ">= 0.13" + + required_providers { + bitbucketserver = { + source = "gavinbunney/bitbucketserver" + } + } +} +``` + +### Terraform 0.12 + +#### Install latest version The following one-liner script will fetch the latest provider version and download it to your `~/.terraform.d/plugins` directory. ```bash $ mkdir -p ~/.terraform.d/plugins && \ - curl -Ls https://api.github.com/repos/gavinbunney/terraform-provider-bitbucketserver/releases/latest \ - | jq -r ".assets[] | select(.browser_download_url | contains(\"$(uname -s | tr A-Z a-z)\")) | select(.browser_download_url | contains(\"amd64\")) | .browser_download_url" \ - | xargs -n 1 curl -Lo ~/.terraform.d/plugins/terraform-provider-bitbucketserver && \ - chmod +x ~/.terraform.d/plugins/terraform-provider-bitbucketserver + curl -Ls https://api.github.com/repos/gavinbunney/terraform-provider-bitbucketserver/releases/latest \ + | jq -r ".assets[] | select(.browser_download_url | contains(\"$(uname -s | tr A-Z a-z)\")) | select(.browser_download_url | contains(\"amd64\")) | .browser_download_url" \ + | xargs -n 1 curl -Lo ~/.terraform.d/plugins/terraform-provider-bitbucketserver.zip && \ + pushd ~/.terraform.d/plugins/ && \ + unzip ~/.terraform.d/plugins/terraform-provider-bitbucketserver.zip -d terraform-provider-bitbucketserver-tmp && \ + mv terraform-provider-bitbucketserver-tmp/terraform-provider-bitbucketserver* . && \ + chmod +x terraform-provider-bitbucketserver* && \ + rm -rf terraform-provider-bitbucketserver-tmp && \ + rm -rf terraform-provider-bitbucketserver.zip && \ + popd ``` -### Install manually +#### Install manually + +If you don't want to use the one-liner above, you can download a binary for your system from the [release page](https://github.com/gavinbunney/terraform-provider-bitbucketserver/releases), +then either place it at the root of your Terraform folder or in the Terraform plugin folder on your system. -If you don't want to use the one-liner above, you can download a binary for your system from the [release page](https://github.com/gavinbunney/terraform-provider-bitbucketserver/releases) and remove the `-os-arch` details so you're left with `terraform-provider-bitbucketserver`. -Use `chmod +x` to make it executable and then either place it at the root of your Terraform folder or in the Terraform plugin folder on your system. -## Provider Configuration +## Configuration The provider supports parameters to determine the bitbucket server and admin user/password to use. diff --git a/docusaurus/docs/resource_banner.md b/docs/resources/bitbucketserver_banner.md similarity index 90% rename from docusaurus/docs/resource_banner.md rename to docs/resources/bitbucketserver_banner.md index ac053e7..fbf311c 100644 --- a/docusaurus/docs/resource_banner.md +++ b/docs/resources/bitbucketserver_banner.md @@ -1,7 +1,4 @@ ---- -id: bitbucketserver_banner -title: bitbucketserver_banner ---- +# Resource: bitbucketserver_banner Manage the announcement banner, updating as required. diff --git a/docusaurus/docs/resource_default_reviewers_condition.md b/docs/resources/bitbucketserver_default_reviewers_condition.md similarity index 95% rename from docusaurus/docs/resource_default_reviewers_condition.md rename to docs/resources/bitbucketserver_default_reviewers_condition.md index 4f73745..d956a88 100644 --- a/docusaurus/docs/resource_default_reviewers_condition.md +++ b/docs/resources/bitbucketserver_default_reviewers_condition.md @@ -1,7 +1,4 @@ ---- -id: bitbucketserver_default_reviewers_condition -title: bitbucketserver_default_reviewers_condition ---- +# Resource: bitbucketserver_default_reviewers_condition Create a default reviewers condition for project or repository. diff --git a/docusaurus/docs/resource_global_permissions_group.md b/docs/resources/bitbucketserver_global_permissions_group.md similarity index 84% rename from docusaurus/docs/resource_global_permissions_group.md rename to docs/resources/bitbucketserver_global_permissions_group.md index 2aca91a..cb1d8ef 100644 --- a/docusaurus/docs/resource_global_permissions_group.md +++ b/docs/resources/bitbucketserver_global_permissions_group.md @@ -1,7 +1,4 @@ ---- -id: bitbucketserver_global_permissions_group -title: bitbucketserver_global_permissions_group ---- +# Resource: bitbucketserver_global_permissions_group Set global permissions for a given group. diff --git a/docusaurus/docs/resource_global_permissions_user.md b/docs/resources/bitbucketserver_global_permissions_user.md similarity index 85% rename from docusaurus/docs/resource_global_permissions_user.md rename to docs/resources/bitbucketserver_global_permissions_user.md index 3374ad9..b1b3762 100644 --- a/docusaurus/docs/resource_global_permissions_user.md +++ b/docs/resources/bitbucketserver_global_permissions_user.md @@ -1,7 +1,4 @@ ---- -id: bitbucketserver_global_permissions_user -title: bitbucketserver_global_permissions_user ---- +# Resource: bitbucketserver_global_permissions_user Set global permissions for a given user. diff --git a/docusaurus/docs/resource_group.md b/docs/resources/bitbucketserver_group.md similarity index 86% rename from docusaurus/docs/resource_group.md rename to docs/resources/bitbucketserver_group.md index 7a005c6..c3c4754 100644 --- a/docusaurus/docs/resource_group.md +++ b/docs/resources/bitbucketserver_group.md @@ -1,7 +1,4 @@ ---- -id: bitbucketserver_group -title: bitbucketserver_group ---- +# Resource: bitbucketserver_group Create a Bitbucket group. diff --git a/docusaurus/docs/resource_license.md b/docs/resources/bitbucketserver_license.md similarity index 92% rename from docusaurus/docs/resource_license.md rename to docs/resources/bitbucketserver_license.md index 8365c02..f5117cb 100644 --- a/docusaurus/docs/resource_license.md +++ b/docs/resources/bitbucketserver_license.md @@ -1,7 +1,4 @@ ---- -id: bitbucketserver_license -title: bitbucketserver_license ---- +# Resource: bitbucketserver_license Set the license for the bitbucket server. diff --git a/docusaurus/docs/resource_mail_server.md b/docs/resources/bitbucketserver_mail_server.md similarity index 92% rename from docusaurus/docs/resource_mail_server.md rename to docs/resources/bitbucketserver_mail_server.md index 0b820fc..3a25d52 100644 --- a/docusaurus/docs/resource_mail_server.md +++ b/docs/resources/bitbucketserver_mail_server.md @@ -1,7 +1,4 @@ ---- -id: bitbucketserver_mail_server -title: bitbucketserver_mail_server ---- +# Resource: bitbucketserver_mail_server Setup mail server configuration. diff --git a/docusaurus/docs/resource_plugin.md b/docs/resources/bitbucketserver_plugin.md similarity index 97% rename from docusaurus/docs/resource_plugin.md rename to docs/resources/bitbucketserver_plugin.md index 3aa951d..e63d391 100644 --- a/docusaurus/docs/resource_plugin.md +++ b/docs/resources/bitbucketserver_plugin.md @@ -1,7 +1,4 @@ ---- -id: bitbucketserver_plugin -title: bitbucketserver_plugin ---- +# Resource: bitbucketserver_plugin Install plugins, manage enabled state and set license details. diff --git a/docusaurus/docs/resource_plugin_config.md b/docs/resources/bitbucketserver_plugin_config.md similarity index 87% rename from docusaurus/docs/resource_plugin_config.md rename to docs/resources/bitbucketserver_plugin_config.md index f12cf2e..b2262eb 100644 --- a/docusaurus/docs/resource_plugin_config.md +++ b/docs/resources/bitbucketserver_plugin_config.md @@ -1,7 +1,4 @@ ---- -id: bitbucketserver_plugin_config -title: bitbucketserver_plugin_config ---- +# Resource: bitbucketserver_plugin_config Configure plugins. diff --git a/docusaurus/docs/resource_project.md b/docs/resources/bitbucketserver_project.md similarity index 91% rename from docusaurus/docs/resource_project.md rename to docs/resources/bitbucketserver_project.md index a5c03ce..6518a98 100644 --- a/docusaurus/docs/resource_project.md +++ b/docs/resources/bitbucketserver_project.md @@ -1,7 +1,4 @@ ---- -id: bitbucketserver_project -title: bitbucketserver_project ---- +# Resource: bitbucketserver_project Create a Bitbucket Project to hold repositories. diff --git a/docusaurus/docs/resource_project_hook.md b/docs/resources/bitbucketserver_project_hook.md similarity index 88% rename from docusaurus/docs/resource_project_hook.md rename to docs/resources/bitbucketserver_project_hook.md index bf7ec19..e4b3fab 100644 --- a/docusaurus/docs/resource_project_hook.md +++ b/docs/resources/bitbucketserver_project_hook.md @@ -1,7 +1,4 @@ ---- -id: bitbucketserver_project_hook -title: bitbucketserver_project_hook ---- +# Resource: bitbucketserver_project_hook Manage a project level hook. Extends what Bitbucket does every time a repository changes, for example when code is pushed or a pull request is merged. diff --git a/docusaurus/docs/resource_project_permissions_group.md b/docs/resources/bitbucketserver_project_permissions_group.md similarity index 87% rename from docusaurus/docs/resource_project_permissions_group.md rename to docs/resources/bitbucketserver_project_permissions_group.md index 82784db..9103fb2 100644 --- a/docusaurus/docs/resource_project_permissions_group.md +++ b/docs/resources/bitbucketserver_project_permissions_group.md @@ -1,7 +1,4 @@ ---- -id: bitbucketserver_project_permissions_group -title: bitbucketserver_project_permissions_group ---- +# Resource: bitbucketserver_project_permissions_group Set project level permissions for a given group. diff --git a/docusaurus/docs/resource_project_permissions_user.md b/docs/resources/bitbucketserver_project_permissions_user.md similarity index 87% rename from docusaurus/docs/resource_project_permissions_user.md rename to docs/resources/bitbucketserver_project_permissions_user.md index 2851f0d..fd28879 100644 --- a/docusaurus/docs/resource_project_permissions_user.md +++ b/docs/resources/bitbucketserver_project_permissions_user.md @@ -1,7 +1,4 @@ ---- -id: bitbucketserver_project_permissions_user -title: bitbucketserver_project_permissions_user ---- +# Resource: bitbucketserver_project_permissions_user Set project permissions for a given user. diff --git a/docusaurus/docs/resource_repository.md b/docs/resources/bitbucketserver_repository.md similarity index 95% rename from docusaurus/docs/resource_repository.md rename to docs/resources/bitbucketserver_repository.md index 516178f..f97349e 100644 --- a/docusaurus/docs/resource_repository.md +++ b/docs/resources/bitbucketserver_repository.md @@ -1,7 +1,4 @@ ---- -id: bitbucketserver_repository -title: bitbucketserver_repository ---- +# Resource: bitbucketserver_repository Create a Bitbucket Repository. diff --git a/docusaurus/docs/resource_repository_hook.md b/docs/resources/bitbucketserver_repository_hook.md similarity index 89% rename from docusaurus/docs/resource_repository_hook.md rename to docs/resources/bitbucketserver_repository_hook.md index 20c1662..931637b 100644 --- a/docusaurus/docs/resource_repository_hook.md +++ b/docs/resources/bitbucketserver_repository_hook.md @@ -1,7 +1,4 @@ ---- -id: bitbucketserver_repository_hook -title: bitbucketserver_repository_hook ---- +# Resource: bitbucketserver_repository_hook Manage a repository level hook. Extends what Bitbucket does every time a repository changes, for example when code is pushed or a pull request is merged. diff --git a/docusaurus/docs/resource_repository_permissions_group.md b/docs/resources/bitbucketserver_repository_permissions_group.md similarity index 88% rename from docusaurus/docs/resource_repository_permissions_group.md rename to docs/resources/bitbucketserver_repository_permissions_group.md index a758f26..b30f4b6 100644 --- a/docusaurus/docs/resource_repository_permissions_group.md +++ b/docs/resources/bitbucketserver_repository_permissions_group.md @@ -1,7 +1,4 @@ ---- -id: bitbucketserver_repository_permissions_group -title: bitbucketserver_repository_permissions_group ---- +# Resource: bitbucketserver_repository_permissions_group Set repository level permissions for a given group. diff --git a/docusaurus/docs/resource_repository_permissions_user.md b/docs/resources/bitbucketserver_repository_permissions_user.md similarity index 88% rename from docusaurus/docs/resource_repository_permissions_user.md rename to docs/resources/bitbucketserver_repository_permissions_user.md index 0879974..20f4798 100644 --- a/docusaurus/docs/resource_repository_permissions_user.md +++ b/docs/resources/bitbucketserver_repository_permissions_user.md @@ -1,7 +1,4 @@ ---- -id: bitbucketserver_repository_permissions_user -title: bitbucketserver_repository_permissions_user ---- +# Resource: bitbucketserver_repository_permissions_user Set repository permissions for a given user. diff --git a/docusaurus/docs/resource_user.md b/docs/resources/bitbucketserver_user.md similarity index 93% rename from docusaurus/docs/resource_user.md rename to docs/resources/bitbucketserver_user.md index 32edb80..7cf5205 100644 --- a/docusaurus/docs/resource_user.md +++ b/docs/resources/bitbucketserver_user.md @@ -1,7 +1,4 @@ ---- -id: bitbucketserver_user -title: bitbucketserver_user ---- +# Resource: bitbucketserver_user Create a Bitbucket user. diff --git a/docusaurus/docs/resource_user_access_token.md b/docs/resources/bitbucketserver_user_access_token.md similarity index 94% rename from docusaurus/docs/resource_user_access_token.md rename to docs/resources/bitbucketserver_user_access_token.md index fb5fef2..0d9c934 100644 --- a/docusaurus/docs/resource_user_access_token.md +++ b/docs/resources/bitbucketserver_user_access_token.md @@ -1,7 +1,4 @@ ---- -id: bitbucketserver_user_access_token -title: bitbucketserver_user_access_token ---- +# Resource: bitbucketserver_user_access_token Personal access tokens can be used to replace passwords over https, or to authenticate using the Bitbucket Server REST API over Basic Auth. diff --git a/docusaurus/docs/resource_user_group.md b/docs/resources/bitbucketserver_user_group.md similarity index 86% rename from docusaurus/docs/resource_user_group.md rename to docs/resources/bitbucketserver_user_group.md index 191b6f2..0be187e 100644 --- a/docusaurus/docs/resource_user_group.md +++ b/docs/resources/bitbucketserver_user_group.md @@ -1,7 +1,4 @@ ---- -id: bitbucketserver_user_group -title: bitbucketserver_user_group ---- +# Resource: bitbucketserver_user_group Assign a User to an existing Bitbucket Group. diff --git a/docusaurus/.dockerignore b/docusaurus/.dockerignore deleted file mode 100755 index 27d2dae..0000000 --- a/docusaurus/.dockerignore +++ /dev/null @@ -1,2 +0,0 @@ -*/node_modules -*.log diff --git a/docusaurus/Dockerfile b/docusaurus/Dockerfile deleted file mode 100755 index d369844..0000000 --- a/docusaurus/Dockerfile +++ /dev/null @@ -1,10 +0,0 @@ -FROM node:8.11.4 - -WORKDIR /app/website - -EXPOSE 3000 35729 -COPY ./docs /app/docs -COPY ./website /app/website -RUN yarn install - -CMD ["yarn", "start"] diff --git a/docusaurus/docker-compose.yml b/docusaurus/docker-compose.yml deleted file mode 100755 index 6711192..0000000 --- a/docusaurus/docker-compose.yml +++ /dev/null @@ -1,18 +0,0 @@ -version: "3" - -services: - docusaurus: - build: . - ports: - - 3000:3000 - - 35729:35729 - volumes: - - ./docs:/app/docs - - ./website/blog:/app/website/blog - - ./website/core:/app/website/core - - ./website/i18n:/app/website/i18n - - ./website/pages:/app/website/pages - - ./website/static:/app/website/static - - ./website/sidebars.json:/app/website/sidebars.json - - ./website/siteConfig.js:/app/website/siteConfig.js - working_dir: /app/website diff --git a/docusaurus/website/README.md b/docusaurus/website/README.md deleted file mode 100755 index f3da77f..0000000 --- a/docusaurus/website/README.md +++ /dev/null @@ -1,193 +0,0 @@ -This website was created with [Docusaurus](https://docusaurus.io/). - -# What's In This Document - -* [Get Started in 5 Minutes](#get-started-in-5-minutes) -* [Directory Structure](#directory-structure) -* [Editing Content](#editing-content) -* [Adding Content](#adding-content) -* [Full Documentation](#full-documentation) - -# Get Started in 5 Minutes - -1. Make sure all the dependencies for the website are installed: - -```sh -# Install dependencies -$ yarn -``` -2. Run your dev server: - -```sh -# Start the site -$ yarn start -``` - -## Directory Structure - -Your project file structure should look something like this - -``` -my-docusaurus/ - docs/ - doc-1.md - doc-2.md - doc-3.md - website/ - blog/ - 2016-3-11-oldest-post.md - 2017-10-24-newest-post.md - core/ - node_modules/ - pages/ - static/ - css/ - img/ - package.json - sidebar.json - siteConfig.js -``` - -# Editing Content - -## Editing an existing docs page - -Edit docs by navigating to `docs/` and editing the corresponding document: - -`docs/doc-to-be-edited.md` - -```markdown ---- -id: page-needs-edit -title: This Doc Needs To Be Edited ---- - -Edit me... -``` - -For more information about docs, click [here](https://docusaurus.io/docs/en/navigation) - -## Editing an existing blog post - -Edit blog posts by navigating to `website/blog` and editing the corresponding post: - -`website/blog/post-to-be-edited.md` -```markdown ---- -id: post-needs-edit -title: This Blog Post Needs To Be Edited ---- - -Edit me... -``` - -For more information about blog posts, click [here](https://docusaurus.io/docs/en/adding-blog) - -# Adding Content - -## Adding a new docs page to an existing sidebar - -1. Create the doc as a new markdown file in `/docs`, example `docs/newly-created-doc.md`: - -```md ---- -id: newly-created-doc -title: This Doc Needs To Be Edited ---- - -My new content here.. -``` - -1. Refer to that doc's ID in an existing sidebar in `website/sidebar.json`: - -```javascript -// Add newly-created-doc to the Getting Started category of docs -{ - "docs": { - "Getting Started": [ - "quick-start", - "newly-created-doc" // new doc here - ], - ... - }, - ... -} -``` - -For more information about adding new docs, click [here](https://docusaurus.io/docs/en/navigation) - -## Adding a new blog post - -1. Make sure there is a header link to your blog in `website/siteConfig.js`: - -`website/siteConfig.js` -```javascript -headerLinks: [ - ... - { blog: true, label: 'Blog' }, - ... -] -``` - -2. Create the blog post with the format `YYYY-MM-DD-My-Blog-Post-Title.md` in `website/blog`: - -`website/blog/2018-05-21-New-Blog-Post.md` - -```markdown ---- -author: Frank Li -authorURL: https://twitter.com/foobarbaz -authorFBID: 503283835 -title: New Blog Post ---- - -Lorem Ipsum... -``` - -For more information about blog posts, click [here](https://docusaurus.io/docs/en/adding-blog) - -## Adding items to your site's top navigation bar - -1. Add links to docs, custom pages or external links by editing the headerLinks field of `website/siteConfig.js`: - -`website/siteConfig.js` -```javascript -{ - headerLinks: [ - ... - /* you can add docs */ - { doc: 'my-examples', label: 'Examples' }, - /* you can add custom pages */ - { page: 'help', label: 'Help' }, - /* you can add external links */ - { href: 'https://github.com/facebook/Docusaurus', label: 'GitHub' }, - ... - ], - ... -} -``` - -For more information about the navigation bar, click [here](https://docusaurus.io/docs/en/navigation) - -## Adding custom pages - -1. Docusaurus uses React components to build pages. The components are saved as .js files in `website/pages/en`: -1. If you want your page to show up in your navigation header, you will need to update `website/siteConfig.js` to add to the `headerLinks` element: - -`website/siteConfig.js` -```javascript -{ - headerLinks: [ - ... - { page: 'my-new-custom-page', label: 'My New Custom Page' }, - ... - ], - ... -} -``` - -For more information about custom pages, click [here](https://docusaurus.io/docs/en/custom-pages). - -# Full Documentation - -Full documentation can be found on the [website](https://docusaurus.io/). diff --git a/docusaurus/website/core/Footer.js b/docusaurus/website/core/Footer.js deleted file mode 100755 index 1799a18..0000000 --- a/docusaurus/website/core/Footer.js +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -const React = require('react'); - -class Footer extends React.Component { - render() { - return ( - - ); - } -} - -module.exports = Footer; diff --git a/docusaurus/website/i18n/en.json b/docusaurus/website/i18n/en.json deleted file mode 100644 index 69b33db..0000000 --- a/docusaurus/website/i18n/en.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "_comment": "This file is auto-generated by write-translations.js", - "localized-strings": { - "next": "Next", - "previous": "Previous", - "docs": { - "data_bitbucketserver_application_properties": { - "title": "bitbucketserver_application_properties" - }, - "data_bitbucketserver_cluster": { - "title": "bitbucketserver_cluster" - }, - "data_bitbucketserver_global_permissions_groups": { - "title": "bitbucketserver_global_permissions_groups" - }, - "data_bitbucketserver_global_permissions_users": { - "title": "bitbucketserver_global_permissions_users" - }, - "data_bitbucketserver_group_users": { - "title": "bitbucketserver_group_users" - }, - "data_bitbucketserver_groups": { - "title": "bitbucketserver_groups" - }, - "data_bitbucketserver_plugin": { - "title": "bitbucketserver_plugin" - }, - "data_bitbucketserver_project_hooks": { - "title": "bitbucketserver_project_hooks" - }, - "data_bitbucketserver_project_permissions_groups": { - "title": "bitbucketserver_project_permissions_groups" - }, - "data_bitbucketserver_project_permissions_users": { - "title": "bitbucketserver_project_permissions_users" - }, - "data_bitbucketserver_repository_hooks": { - "title": "bitbucketserver_repository_hooks" - }, - "data_bitbucketserver_repository_permissions_groups": { - "title": "bitbucketserver_repository_permissions_groups" - }, - "data_bitbucketserver_repository_permissions_users": { - "title": "bitbucketserver_repository_permissions_users" - }, - "data_bitbucketserver_user": { - "title": "bitbucketserver_user" - }, - "provider": { - "title": "Getting Started" - }, - "bitbucketserver_banner": { - "title": "bitbucketserver_banner" - }, - "bitbucketserver_default_reviewers_condition": { - "title": "bitbucketserver_default_reviewers_condition" - }, - "bitbucketserver_global_permissions_group": { - "title": "bitbucketserver_global_permissions_group" - }, - "bitbucketserver_global_permissions_user": { - "title": "bitbucketserver_global_permissions_user" - }, - "bitbucketserver_group": { - "title": "bitbucketserver_group" - }, - "bitbucketserver_license": { - "title": "bitbucketserver_license" - }, - "bitbucketserver_mail_server": { - "title": "bitbucketserver_mail_server" - }, - "bitbucketserver_plugin_config": { - "title": "bitbucketserver_plugin_config" - }, - "bitbucketserver_plugin": { - "title": "bitbucketserver_plugin" - }, - "bitbucketserver_project_hook": { - "title": "bitbucketserver_project_hook" - }, - "bitbucketserver_project_permissions_group": { - "title": "bitbucketserver_project_permissions_group" - }, - "bitbucketserver_project_permissions_user": { - "title": "bitbucketserver_project_permissions_user" - }, - "bitbucketserver_project": { - "title": "bitbucketserver_project" - }, - "bitbucketserver_repository_hook": { - "title": "bitbucketserver_repository_hook" - }, - "bitbucketserver_repository_permissions_group": { - "title": "bitbucketserver_repository_permissions_group" - }, - "bitbucketserver_repository_permissions_user": { - "title": "bitbucketserver_repository_permissions_user" - }, - "bitbucketserver_repository": { - "title": "bitbucketserver_repository" - }, - "bitbucketserver_user_access_token": { - "title": "bitbucketserver_user_access_token" - }, - "bitbucketserver_user_group": { - "title": "bitbucketserver_user_group" - }, - "bitbucketserver_user": { - "title": "bitbucketserver_user" - } - }, - "links": { - "Releases": "Releases", - "GitHub": "GitHub" - }, - "categories": { - "Bitbucket Server": "Bitbucket Server", - "Data Sources": "Data Sources", - "Resources": "Resources" - } - }, - "pages-strings": { - "Help Translate|recruit community translators for your project": "Help Translate", - "Edit this Doc|recruitment message asking to edit the doc source": "Edit", - "Translate this Doc|recruitment message asking to translate the docs": "Translate" - } -} diff --git a/docusaurus/website/package.json b/docusaurus/website/package.json deleted file mode 100644 index 048cdb9..0000000 --- a/docusaurus/website/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts": { - "examples": "docusaurus-examples", - "start": "docusaurus-start", - "build": "docusaurus-build", - "publish-gh-pages": "docusaurus-publish", - "write-translations": "docusaurus-write-translations", - "version": "docusaurus-version", - "rename-version": "docusaurus-rename-version" - }, - "devDependencies": { - "docusaurus": "^1.14.4" - }, - "dependencies": { - "kind-of": "^6.0.3" - } -} diff --git a/docusaurus/website/sidebars.json b/docusaurus/website/sidebars.json deleted file mode 100755 index 4f87bfe..0000000 --- a/docusaurus/website/sidebars.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "docs": { - "Bitbucket Server": [ - "provider" - ], - "Data Sources": [ - "data_bitbucketserver_application_properties", - "data_bitbucketserver_cluster", - "data_bitbucketserver_global_permissions_groups", - "data_bitbucketserver_global_permissions_users", - "data_bitbucketserver_group_users", - "data_bitbucketserver_groups", - "data_bitbucketserver_plugin", - "data_bitbucketserver_project_hooks", - "data_bitbucketserver_project_permissions_groups", - "data_bitbucketserver_project_permissions_users", - "data_bitbucketserver_repository_hooks", - "data_bitbucketserver_repository_permissions_groups", - "data_bitbucketserver_repository_permissions_users", - "data_bitbucketserver_user" - ], - "Resources": [ - "bitbucketserver_banner", - "bitbucketserver_default_reviewers_condition", - "bitbucketserver_global_permissions_group", - "bitbucketserver_global_permissions_user", - "bitbucketserver_group", - "bitbucketserver_license", - "bitbucketserver_mail_server", - "bitbucketserver_plugin", - "bitbucketserver_plugin_config", - "bitbucketserver_project", - "bitbucketserver_project_hook", - "bitbucketserver_project_permissions_group", - "bitbucketserver_project_permissions_user", - "bitbucketserver_repository", - "bitbucketserver_repository_hook", - "bitbucketserver_repository_permissions_group", - "bitbucketserver_repository_permissions_user", - "bitbucketserver_user", - "bitbucketserver_user_access_token", - "bitbucketserver_user_group" - ] - } -} diff --git a/docusaurus/website/siteConfig.js b/docusaurus/website/siteConfig.js deleted file mode 100644 index a94449d..0000000 --- a/docusaurus/website/siteConfig.js +++ /dev/null @@ -1,61 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -// See https://docusaurus.io/docs/site-config for all the possible -// site configuration options. - -const siteConfig = { - title: 'Bitbucket Server Terraform Provider', - - url: 'https://gavinbunney.github.io', - baseUrl: '/terraform-provider-bitbucketserver/', - projectName: 'terraform-provider-bitbucketserver', - organizationName: 'gavinbunney', - - editUrl: 'https://github.com/gavinbunney/terraform-provider-bitbucketserver/edit/master/docusaurus/docs/', - - // For no header links in the top nav bar -> headerLinks: [], - headerLinks: [ - { href: "https://github.com/gavinbunney/terraform-provider-bitbucketserver/releases", label: "Releases" }, - { href: "https://github.com/gavinbunney/terraform-provider-bitbucketserver", label: "GitHub" }, - ], - - /* path to images for header/footer */ - favicon: 'img/favicon.png', - - /* Colors for website */ - colors: { - primaryColor: '#5C4EE5', - secondaryColor: '#66246c', - }, - - usePrism: ['yaml', 'js', 'bash', 'sh', 'hcl'], - - // This copyright info is used in /core/Footer.js and blog RSS/Atom feeds. - copyright: `Copyright © ${new Date().getFullYear()} Gavin Bunney`, - - highlight: { - // Highlight.js theme to use for syntax highlighting in code blocks. - theme: 'default', - }, - - // Add custom scripts here that would be placed in -