Skip to content

Commit 6ddb9f9

Browse files
authored
fix(docs): exclude README.mdx from docs.zip (#26)
- exclude docs/README.mdx from docs.zip and rename docs/builder to docs/builders so that zip's content is compatible with Hashicorp website - change example directory link to point GH repository
1 parent e8cc0dc commit 6ddb9f9

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ examples/crash.log
33
dist
44
packer-plugin-upcloud
55
vendor
6+
docs.zip

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ install-packer-sdc: ## Install packer sofware development command
3737
go install github.com/hashicorp/packer-plugin-sdk/cmd/packer-sdc@$(HASHICORP_PACKER_PLUGIN_SDK_VERSION)
3838

3939
ci-release-docs: install-packer-sdc generate
40-
@/bin/sh -c "[ -d docs ] && zip -r docs.zip docs/"
40+
@/bin/sh -c "[ -d docs ] && zip -x docs/README.mdx -r docs.zip docs/"
4141

4242
plugin-check: install-packer-sdc build
4343
$(PACKER_SDC) plugin-check $(BINARY)

docs-partials/config/builder/upcloud/interfaces_private.pkr.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ source "upcloud" "test" {
4444
}
4545
communicator = "ssh"
4646

47-
# Use bastion host to get access to private network if need
47+
# Use bastion host to get access to private network
4848
# ssh_bastion_username = "<bastion_username>"
4949
# ssh_bastion_host = "<bastion_host>"
5050
# ssh_bastion_private_key_file = "<bastion_private_key_file>"

docs-src/README.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ on [installing a plugin](https://www.packer.io/docs/extending/plugins/#installin
4343

4444
### Builders
4545

46-
- [upcloud](/docs/builder/upcloud.mdx) - The upcloud builder is used to generate storage templates on UpCloud.
46+
- [upcloud](/docs/builders/upcloud.mdx) - The upcloud builder is used to generate storage templates on UpCloud.
4747

4848
## JSON Templates
4949
From Packer version 1.7.0, template HCL2 becomes officially the preferred way to write Packer configuration. While the `json` format is still supported, but certain new features, such as `packer init` works only in newer HCL2 format.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The upcloud builder is used to generate storage templates on UpCloud.
4646
-->
4747
### Example Usage
4848

49-
Here is a sample template, which you can also find in the [example](../../example/) directory.
49+
Here is a sample template, which you can also find in the [example](https://github.com/UpCloudLtd/packer-plugin-upcloud/tree/master/example) directory.
5050
It reads your UpCloud API credentials from the environment variables, creates an Ubuntu 20.04 LTS server in the `nl-ams1` region and authorizes root user to loggin with your public SSH key.
5151

5252
```hcl

docs/README.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ on [installing a plugin](https://www.packer.io/docs/extending/plugins/#installin
5151

5252
### Builders
5353

54-
- [upcloud](/docs/builder/upcloud.mdx) - The upcloud builder is used to generate storage templates on UpCloud.
54+
- [upcloud](/docs/builders/upcloud.mdx) - The upcloud builder is used to generate storage templates on UpCloud.
5555

5656
## JSON Templates
5757
From Packer version 1.7.0, template HCL2 becomes officially the preferred way to write Packer configuration. While the `json` format is still supported, but certain new features, such as `packer init` works only in newer HCL2 format.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ The upcloud builder is used to generate storage templates on UpCloud.
109109
-->
110110
### Example Usage
111111

112-
Here is a sample template, which you can also find in the [example](../../example/) directory.
112+
Here is a sample template, which you can also find in the [example](https://github.com/UpCloudLtd/packer-plugin-upcloud/tree/master/example) directory.
113113
It reads your UpCloud API credentials from the environment variables, creates an Ubuntu 20.04 LTS server in the `nl-ams1` region and authorizes root user to loggin with your public SSH key.
114114

115115
```hcl
@@ -352,7 +352,7 @@ source "upcloud" "test" {
352352
}
353353
communicator = "ssh"
354354

355-
# Use bastion host to get access to private network if need
355+
# Use bastion host to get access to private network
356356
# ssh_bastion_username = "<bastion_username>"
357357
# ssh_bastion_host = "<bastion_host>"
358358
# ssh_bastion_private_key_file = "<bastion_private_key_file>"

0 commit comments

Comments
 (0)