Skip to content

Commit

Permalink
chore: fix netlify docs deploy (#1564)
Browse files Browse the repository at this point in the history
This PR force netlify to deploy when there is update on the folder docs/
and misc/docusaurus only.

Fixes #1532

<details><summary>Contributors' checklist...</summary>

- [ ] Added new tests, or not needed, or not feasible
- [ ] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [ ] Updated the official documentation or not needed
- [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [ ] Added references to related issues and PRs
- [ ] Provided any useful hints for running manual tests
- [ ] Added new benchmarks to [generated
graphs](https://gnoland.github.io/benchmarks), if any. More info
[here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md).
</details>
  • Loading branch information
albttx authored Jan 25, 2024
1 parent 87179b9 commit 42d270a
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@

# Settings in the [build] context are global and are applied to
# all contexts unless otherwise overridden by more specific contexts.
[build]
# Directory where the build system installs dependencies
# and runs your build. Store your package.json, .nvmrc, etc here.
# If not set, defaults to the root directory.
base = "misc/docusaurus"

# Directory that contains the deploy-ready HTML files and
# assets generated by the build. This is an absolute path relative
# to the base directory, which is the root by default (/).
# This sample publishes the directory located at the absolute
# path "root/project/build-output"

publish = "build"

# Default build command.
command = "yarn build && yarn install"

ignore = "git diff --quiet $COMMIT_REF $CACHED_COMMIT_REF -- . ../../docs ../../netlify.toml"

[[plugins]]
# Installs the Lighthouse Build Plugin for all deploy contexts
package = "@netlify/plugin-lighthouse"

# [[headers]]
# # Define which paths this specific [[headers]] block will cover.
# for = "/*"

# [headers.values]
# X-Frame-Options = "DENY"
# X-XSS-Protection = "1; mode=block"
# Content-Security-Policy = "frame-ancestors https://www.facebook.com"

# # Multi-value headers are expressed with multi-line strings.
# cache-control = '''
# max-age=0,
# no-cache,
# no-store,
# must-revalidate'''

# # Basic-Auth allows you to password protect your whole site.
# # This feature may not be available on all plans.
# Basic-Auth = "someuser:somepassword anotheruser:anotherpassword"

0 comments on commit 42d270a

Please sign in to comment.