Skip to content

Commit e28eaf0

Browse files
Merge pull request #23 from run-at-scale/feat/orrin-update
Feat: support for non-standard docs paths, removal of hardcoded snippet cap, snippets generated
2 parents b68578c + 7a57e38 commit e28eaf0

File tree

13 files changed

+169735
-92333
lines changed

13 files changed

+169735
-92333
lines changed

AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ If you are submitting a change, please add your name or the name of the organiza
77
## Humans
88

99
* [Brandon Bjelland](https://github.com/brandonjbjelland) \<brandon at atscale.run\>
10+
* [Orrin Fiandaca](https://github.com/orrin) \<ofiandaca at gmail.com\>
1011

1112
## Organizations
1213

CHANGELOG.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,19 @@ All notable changes to this project will be documented in this file. See [standa
44

55
## Future
66

7-
- tests added
8-
- types added
9-
- placeholders for tabbing through snippet names added to each snippet
7+
- tests
8+
- ts types
9+
- auto-tabbing through common parts of snippets (name of core resource, etc.)
10+
- configurable override of doc paths per provider repo (see: doc_root_path_overrides).
11+
12+
## [0.6.0](https://github.com/run-at-scale/vscode-terraform-doc-snippets/compare/v0.5.0...v0.6.0) (2021-03-04)
13+
14+
### Changed
15+
16+
- pulling 125 providers (all official or partner tier) from the registry and shipping 9341 snippets
17+
- refactored the core workflow to remove the need for the hard-coded number of total snippets (thanks, @orrin!)
18+
- regression: dropped async checkout/download of repos, making the snippet generation process a lot longer. Will fix in subsequent releases - this doesn't affect extension users, only snippet generators (devs working on this project).
19+
- created to specify docs in non-standard paths.
1020

1121
## [0.5.0](https://github.com/run-at-scale/vscode-terraform-doc-snippets/compare/v0.4.0...v0.5.0) (2021-03-01)
1222

@@ -20,7 +30,7 @@ All notable changes to this project will be documented in this file. See [standa
2030

2131
### Changed
2232

23-
- Snippets updated to match latest documentation. Now up to snippets 1719 over 81 providers
33+
- Snippets updated to match latest documentation. Now up to snippets 1719 over 81 providers.
2434

2535
## [0.3.0](https://github.com/run-at-scale/vscode-terraform-doc-snippets/compare/v0.2.0...v0.3.0) (2018-06-26)
2636

@@ -30,9 +40,9 @@ All notable changes to this project will be documented in this file. See [standa
3040

3141
## [0.2.0](https://github.com/run-at-scale/vscode-terraform-doc-snippets/compare/v0.1.5...v0.2.0) (2018-05-10)
3242

33-
- override and extra snippets now added through config
34-
- deprecated resources and data sources manually added for their successor
35-
- snippets file rebuilt and now has 1491 pulled from docs + a few custom snippets
43+
- override and extra/common snippets now added through config.
44+
- deprecated resources and data sources manually added for their successor.
45+
- snippets file rebuilt totalling 1491.
3646

3747
## [0.1.5](https://github.com/run-at-scale/vscode-terraform-doc-snippets/compare/v0.1.4...v0.1.5) (2018-05-04)
3848

@@ -41,7 +51,7 @@ All notable changes to this project will be documented in this file. See [standa
4151
## [0.1.4](https://github.com/run-at-scale/vscode-terraform-doc-snippets/compare/v0.1.3...v0.1.4) (2018-05-04)
4252

4353
- provider repos now scanned from the terraform-providers organization.
44-
- snippets added to 1452.
54+
- snippets total 1452.
4555
- formatting and beautifying ✨
4656
- added error handling for missing absent examples.
4757

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
![Terraform](https://github.com/run-at-scale/vscode-terraform-doc-snippets/raw/master/assets/terraform_logo.png "Terraform doc snippets")
88

9-
A vscode extension that yanks resource and data source documentation from Terraform provider repos and transforms them into structured VS Code snippets. Over 8000 snippets in total.
9+
A vscode extension that yanks resource and data source documentation from Terraform provider repos and transforms them into structured VS Code snippets. Over 9000 snippets included.
1010

1111
## Demo
1212

@@ -42,7 +42,6 @@ npm run build:snippets
4242
## Known Issues
4343

4444
- Issue #1 is probably that this is my first node project and I'm not to be trusted with the language. Help and review wanted! Tests needed.
45-
- The async nature of node means we need to provide a hard stop at the number of snippets collected before cleanup can happen. The stop-gap implementation has this count specified by hand in `config.json`. If a run of `build:snippets` produces more than the value of `total_snippets`, adjust the number up to match.
4645

4746
## Contributing
4847

package-lock.json

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "terraform-doc-snippets",
33
"displayName": "Terraform doc snippets",
4-
"description": "Terraform code snippets (>5000) straight from documentation for all provider resources and data sources. All providers in the public terraform registry covered.",
5-
"version": "0.5.0",
4+
"description": "Terraform code snippets (>8000) pulled from examples in the terraform registry provider docs. resources and data sources. All official and partner providers are scraped for examples.",
5+
"version": "0.6.0",
66
"icon": "assets/terraform_logo.png",
77
"publisher": "run-at-scale",
88
"license": "MIT",
@@ -63,8 +63,8 @@
6363
"@octokit/rest": "^15.2.7",
6464
"async": "^2.6.0",
6565
"gfm-code-blocks": "^1.0.0",
66+
"node-fetch": "^2.6.1",
6667
"nodegit": "^0.26.1",
67-
"request": "^2.88.2",
6868
"tmp": "0.0.33",
6969
"underscore": "^1.9.0"
7070
}

0 commit comments

Comments
 (0)