-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MAINTENANCE] Improvement to contributor documentation (#8043)
Co-authored-by: Ken Wade <ken@greatexpectations.io>
- Loading branch information
1 parent
0905c8a
commit e6e1f5b
Showing
11 changed files
with
199 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Workflows | ||
|
||
The Great Expectations code base has various places where you can contribute code to. This document describes several workflows you might want to run to get started. | ||
|
||
First, make sure you have cloned the repository and installed the Python dependencies. Read more on this in [Contribute a code change](CONTRIBUTING_CODE.md). | ||
|
||
This code base provides following workflows: | ||
|
||
- [Code Linting](#code-linting) | ||
- [Locally deploy docs](#locally-deploy-docs) | ||
- [Verify links in docs](#verify-links-in-docs) | ||
- [Generate Glossary](#generate-glossary) | ||
|
||
## Code Linting | ||
|
||
Before submitting a pull request, make sure that your code passes the lint check, for that run: | ||
|
||
```sh | ||
black . | ||
ruff . --fix | ||
``` | ||
|
||
## Locally Deploy Docs | ||
|
||
You can find more information on developing Great Expectation docs in [/docs/docusaurus/README.md](/docs/docusaurus/README.md). To get a version of the docs deployed locally, run: | ||
|
||
```sh { name=docs background=false } | ||
invoke docs | ||
``` | ||
|
||
The website should be available at: | ||
|
||
```sh | ||
open http://localhost:3000/docs | ||
``` | ||
|
||
## Verify links in docs | ||
|
||
We use a link checker tool to verify that links within our docs are valid, you can run it via: | ||
|
||
```sh { name=linkcheck } | ||
python3 docs/checks/docs_link_checker.py -p docs -r docs -s docs --skip-external | ||
``` | ||
|
||
## Generate Glossary | ||
|
||
Generates a glossary page in our docs: | ||
|
||
```sh { name=glossary cwd=./scripts } | ||
python3 ./build_glossary_page.py | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# IDE Setup Tips | ||
|
||
This document describes useful set-up tips for contributors to this repository. Feel free to suggest more useful changes to this. | ||
|
||
## VS Code | ||
|
||
Create a `.vscode` directory and add the following files to it: | ||
|
||
_.vscode/extension.json_ | ||
```json | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. | ||
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp | ||
// List of extensions which should be recommended for users of this workspace. | ||
"recommendations": [ | ||
"stateful.runme" | ||
], | ||
// List of extensions recommended by VS Code that should not be recommended for users of this workspace. | ||
"unwantedRecommendations": [] | ||
} | ||
``` | ||
|
||
_.vscode/launch.json_ | ||
```json | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "GX Docusarus Docs", | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"command": "invoke docs" | ||
}, | ||
{ | ||
"name": "GX Start MySQL Container", | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"command": "docker-compose up -d", | ||
"cwd": "${workspaceFolder}/assets/docker/mysql" | ||
}, | ||
{ | ||
"name": "GX Start PostgreSQL Container", | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"command": "docker-compose up -d", | ||
"cwd": "${workspaceFolder}/assets/docker/postgresql" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
_.vscode/settings.json_ | ||
```json | ||
{ | ||
"workbench.editorAssociations": { | ||
"CONTRIBUTING_WORKFLOWS.md": "runme", | ||
"CONTRIBUTING_CODE.md": "runme" | ||
} | ||
} | ||
``` | ||
|
||
## PyCharm | ||
|
||
tbd. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.