-
Notifications
You must be signed in to change notification settings - Fork 156
docs: Add dev docs #212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
docs: Add dev docs #212
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
b8d59e6
docs: create development.md
MichaelCurrin 28a7498
docs: update docs/README.md
MichaelCurrin 58ebde3
docs: apply suggestion to development.md
MichaelCurrin feaaa5f
docs: apply suggestion to development.md
MichaelCurrin aa2512a
docs: update development.md
MichaelCurrin ed87f54
docs: fix headings
MichaelCurrin ec0ef8b
docs: update development.md
MichaelCurrin bd690d8
docs: apply review suggestion to docs/development.md
MichaelCurrin b31f32d
docs: apply review suggestion to docs/development.md
MichaelCurrin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,122 @@ | ||
| ## Development | ||
|
|
||
| Guide to local development of this plugin | ||
|
|
||
| ### Installation | ||
|
|
||
| #### Requirements | ||
|
|
||
| - Ruby | ||
| - Bundler | ||
|
|
||
| #### Install system dependencies | ||
|
|
||
| - Install Ruby - see the [Downloads](https://www.ruby-lang.org/en/downloads/) page. | ||
| - Install Bundler - see the [Bundler](https://bundler.io/) homepage. | ||
|
|
||
| #### Clone | ||
|
|
||
| Clone the repo, or your fork. | ||
|
|
||
| ```bash | ||
| $ git clone git@github.com:jekyll/github-metadata.git | ||
| $ cd github-metadata | ||
| ``` | ||
|
|
||
| #### Install project dependencies | ||
|
|
||
| Configure Bundler. | ||
|
|
||
| ```bash | ||
| $ bundle config set --local path vendor/bundle | ||
| ``` | ||
|
|
||
| Install gems. | ||
|
|
||
| ```bash | ||
| $ bundle install | ||
| ``` | ||
|
|
||
| Or, for a faster install. | ||
|
|
||
| ```bash | ||
| $ script/bootstrap | ||
| ``` | ||
|
|
||
| ### Usage | ||
|
|
||
| See the [script](/script/) directory. | ||
|
|
||
| #### Format | ||
|
|
||
| Check for code formatting issues - recommended before you commit. | ||
|
|
||
| ```bash | ||
| $ script/fmt | ||
| ``` | ||
|
|
||
| Fix formatting issues. | ||
|
|
||
| ```bash | ||
| $ script/fmt -a | ||
| ``` | ||
|
|
||
| #### Open interactive console | ||
|
|
||
| ```bash | ||
| $ script/console | ||
| ``` | ||
|
|
||
| #### Test | ||
|
|
||
| Run all unit tests. | ||
|
|
||
| ```bash | ||
| $ script/test | ||
| ``` | ||
|
|
||
| Run a target unit test file by specifying a path. | ||
|
|
||
| ```bash | ||
| $ script/test spec/owner_spec.rb | ||
| ``` | ||
|
|
||
| See some recommended flags below. | ||
|
|
||
| Run tests in the order they are written (not a random order). | ||
|
|
||
| ```bash | ||
| $ script/test --order defined | ||
| ``` | ||
|
|
||
| Run tests in the same random order as a previous run. | ||
|
|
||
| ```bash | ||
| $ script/test --seed 12345 | ||
| ``` | ||
|
|
||
| Run tests with verbose trace logs. | ||
|
|
||
| ```bash | ||
| $ script/test --format documentation | ||
| ``` | ||
|
|
||
| #### Start dev server | ||
|
|
||
| Preview the plugin in Jekyll by running the repo's sample Jekyll site. | ||
|
|
||
| ```bash | ||
| $ script/test-site | ||
| ``` | ||
|
|
||
| Then open in the browser at: | ||
|
|
||
| - http://127.0.0.1:4000 | ||
|
|
||
| ### Release | ||
|
|
||
| Run tests, formatting and create a release. | ||
|
|
||
| ```bash | ||
| $ script/release | ||
| ``` | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.