-
Notifications
You must be signed in to change notification settings - Fork 0
fill in build logic for dev #13
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
Changes from all commits
Commits
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
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,53 @@ | ||
| # This Makefile is for internal use only. Please see top-level | ||
| # tools/documentation. This file focuses on running the tools. It | ||
| # doesn't deal with setting up the environment at all. | ||
|
|
||
| ifndef PLEASE | ||
| $(error "You should use the 'rax-docs' command for all documentation \ | ||
| tasks. If you think you know what you're doing, say PLEASE") | ||
| endif | ||
|
|
||
| ifdef JENKINS_URL | ||
| # Running in Jenkins, so everything has to happen within the workspace | ||
| styles_dir = styles | ||
| temp_dir = ./ | ||
| template_path = .rax-docs/repo/resources/vale.ini.template | ||
| else | ||
| # Running in Docker, so resources will be where they were installed in | ||
| # the image | ||
| styles_dir = /styles | ||
| temp_dir = /tmp | ||
| template_path = /src/.rax-docs/repo/resources/vale.ini.template | ||
| endif | ||
|
|
||
| .PHONY: clean html htmlvers spelling vale test | ||
|
|
||
| clean: | ||
| rm -rf _build/* | ||
|
|
||
| test: spelling vale | ||
| doc8 | ||
| @echo "All tests completed" | ||
| @echo | ||
|
|
||
| html: | ||
| sphinx-build -E -q -b html -d _build/doctrees . _build/html | ||
| @echo "HTML finished. The pages are in $(OUTER_PWD)/docs/_build/html" | ||
| @echo | ||
|
|
||
| vale: html | ||
| TEMP=$$(mktemp --tmpdir=$(temp_dir)) && \ | ||
| sed 's#{{styles_path}}#$(styles_dir)#' < $(template_path) > "$$TEMP" && \ | ||
| vale --config "$$TEMP" _build/html/* | tee _build/vale_output.txt || true | ||
| @echo "Vale Finished. Output is in $(OUTER_PWD)/docs/_build/vale_output.txt" | ||
| @echo | ||
|
|
||
| htmlvers: | ||
| sphinx-versioning -l conf.py build docs _build/html/ | ||
| @echo "Versioned HTML. The HTML pages are in $(OUTER_PWD)/docs/_build/html" | ||
| @echo | ||
|
|
||
| spelling: html | ||
| sphinx-build -W -b spelling -d _build/doctrees . _build/spelling | ||
| @echo "Spell check finished. The spellcheck output is in $(OUTER_PWD)/docs/_build/spelling" | ||
| @echo |
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,32 @@ | ||
| # Rackspace Vale | ||
|
|
||
|
|
||
| # CI builds will only fail on error-level alerts. | ||
| # MinAlertLevel specifies the minimum alert severity that Vale will report. | ||
| # The options are "suggestion," "warning," or "error" (defaults to "suggestion"). | ||
| MinAlertLevel = suggestion | ||
|
|
||
| # The path to your _build folder (relative to the configuration file). | ||
| SphinxBuildPath = _build | ||
|
|
||
| # The command that builds your site (make html is the default for Sphinx). | ||
| # If this is defined, Vale will re-build your site prior to linting any content—making it possible to use Sphinx | ||
| # and Vale in lint-on-the-fly environments (e.g., text editors) at the cost of performance. | ||
| #SphinxAutoBuild = make html | ||
|
|
||
| # Specifies inline-level HTML tags to ignore. In other words, these tags may occur in an active scope | ||
| # (unlike SkippedScopes, which are skipped entirely) but their content still won't raise any alerts. | ||
| IgnoredScopes = code | ||
|
|
||
| # Specifies where Vale should look for its external resources (e.g., styles and ignore files). | ||
| # The path value may be absolute or relative to the location of the parent .vale.ini file. | ||
| # The styles path for Jenkins and Docker are different since both have different installation methods. Docker | ||
| # places the styles path in '/styles' while Jenkins installs it in 'docs/styles'. The mustache variable is | ||
| # replaced with the actual value used when you run 'make vale' or 'make tests'. For more information, see the | ||
| # inner Makefile. | ||
| StylesPath = {{styles_path}} | ||
| Vocab = Vocab | ||
|
|
||
| [*.html] | ||
| # Specifies styles that should have all of their rules enabled. | ||
| BasedOnStyles = Microsoft, Google, docs-vale | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra space here.