diff --git a/README.md b/README.md index 163ce81cc8..13a68c4152 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ $ npm run serve ## Contributing ![GitHub](https://img.shields.io/github/contributors/google/docsy) Please read -[CONTRIBUTING.md](https://github.com/google/docsy/blob/master/CONTRIBUTING.md) +[CONTRIBUTING.md](https://github.com/google/docsy/blob/main/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us. See also the list of [contributors](https://github.com/google/docsy/graphs/contributors) who @@ -74,5 +74,5 @@ participated in this project. ## License ![GitHub](https://img.shields.io/github/license/google/docsy) This project is licensed under the Apache License 2.0 - see the -[LICENSE.md](https://github.com/google/docsy/blob/master/LICENSE) file for +[LICENSE.md](https://github.com/google/docsy/blob/main/LICENSE) file for details diff --git a/layouts/partials/page-meta-links.html b/layouts/partials/page-meta-links.html index 563d9fb3ad..c7e64bde16 100644 --- a/layouts/partials/page-meta-links.html +++ b/layouts/partials/page-meta-links.html @@ -4,7 +4,7 @@ {{ $gh_url := ($.Param "github_url") -}} {{ $gh_subdir := ($.Param "github_subdir") -}} {{ $gh_project_repo := ($.Param "github_project_repo") -}} -{{ $gh_branch := (default "master" ($.Param "github_branch")) -}} +{{ $gh_branch := (default "main" ($.Param "github_branch")) -}}
assets/scss/_variables.scss
][_variables]. For information about other Bootstrap 4 variables, see [Variable defaults][] and Bootstrap's [v4-dev/scss/_variables.scss][] file.
- [`assets/scss/`**`_styles_project.scss`**][_styles_project] is where you can add your own custom SCSS styles, including overriding any of the styles in Docsy's theme SCSS files.
-[_styles_project]: https://github.com/google/docsy/blob/master/assets/scss/_styles_project.scss
-[_variables_project]: https://github.com/google/docsy/blob/master/assets/scss/_variables_project.scss
-[_variables]: https://github.com/google/docsy/blob/master/assets/scss/_variables.scss
+[_styles_project]: https://github.com/google/docsy/blob/main/assets/scss/_styles_project.scss
+[_variables_project]: https://github.com/google/docsy/blob/main/assets/scss/_variables_project.scss
+[_variables]: https://github.com/google/docsy/blob/main/assets/scss/_variables.scss
[v4-dev/scss/_variables.scss]: https://github.com/twbs/bootstrap/blob/v4-dev/scss/_variables.scss
[Variable defaults]: https://getbootstrap.com/docs/4.1/getting-started/theming/#variable-defaults
@@ -184,7 +184,7 @@ If you need to add some code (CSS import, cookie consent, or similar) to the `he
layouts/partials/hooks/head-end.html
```
-And add the code you need in that file. Your partial code is automatically included just before the end of the theme partial [`head.html`](https://github.com/google/docsy/blob/master/layouts/partials/head.html). The theme version of [`head-end.html`](https://github.com/google/docsy/blob/master/layouts/partials/hooks/head-end.html) is empty.
+And add the code you need in that file. Your partial code is automatically included just before the end of the theme partial [`head.html`](https://github.com/google/docsy/blob/main/layouts/partials/head.html). The theme version of [`head-end.html`](https://github.com/google/docsy/blob/main/layouts/partials/hooks/head-end.html) is empty.
Similarly, if you want to add some code right before the `body` end, create your own version of the following file:
@@ -193,9 +193,9 @@ Similarly, if you want to add some code right before the `body` end, create your
layouts/partials/hooks/body-end.html
```
-Any code in this file is included automatically at the end of the theme partial [`scripts.html`](https://github.com/google/docsy/blob/master/layouts/partials/head.html).
+Any code in this file is included automatically at the end of the theme partial [`scripts.html`](https://github.com/google/docsy/blob/main/layouts/partials/head.html).
-Both `head.html` and `scripts.html` are then used to build Docsy's [base page layout](https://github.com/google/docsy/blob/master/layouts/_default/baseof.html), which is used by all the other page templates:
+Both `head.html` and `scripts.html` are then used to build Docsy's [base page layout](https://github.com/google/docsy/blob/main/layouts/_default/baseof.html), which is used by all the other page templates:
```html
diff --git a/userguide/content/en/docs/Best practices/organizing-content.md b/userguide/content/en/docs/Best practices/organizing-content.md
index 862e03ff3a..7c791f78ae 100644
--- a/userguide/content/en/docs/Best practices/organizing-content.md
+++ b/userguide/content/en/docs/Best practices/organizing-content.md
@@ -29,7 +29,7 @@ You may also want to create some tasks/how-tos for your project's features. Feel
site or even just the docs section instead if you like this simpler structure better.
{{% alert title="Tip" %}}
-If you want to copy this guide, be aware that its [source files](https://github.com/google/docsy/tree/master/userguide) are *inside* the Docsy theme repo, and so it doesn't have its own `themes/` directory: instead, we run `hugo server --themesDir ../..` to use Docsy from its parent directory. You may want to either copy the site and [add a `themes/` directory with Docsy](/docs/getting-started/#option-2-use-the-docsy-theme-in-your-own-site), or just copy the `docs/` folder into your existing site's content root.
+If you want to copy this guide, be aware that its [source files](https://github.com/google/docsy/tree/main/userguide) are *inside* the Docsy theme repo, and so it doesn't have its own `themes/` directory: instead, we run `hugo server --themesDir ../..` to use Docsy from its parent directory. You may want to either copy the site and [add a `themes/` directory with Docsy](/docs/getting-started/#option-2-use-the-docsy-theme-in-your-own-site), or just copy the `docs/` folder into your existing site's content root.
{{% /alert %}}
[Learn more about how Hugo and Docsy use folders and other files to organize your site](/docs/adding-content/content/#organizing-your-documentation).
diff --git a/userguide/content/en/docs/Deployment/_index.md b/userguide/content/en/docs/Deployment/_index.md
index 559e51e8cd..dd05b2edc5 100644
--- a/userguide/content/en/docs/Deployment/_index.md
+++ b/userguide/content/en/docs/Deployment/_index.md
@@ -66,14 +66,14 @@ For example, if you want to use a version of `postcss-cli` later than version 8.
```
"devDependencies": {
- "autoprefixer": "^9.8.6",
+ "autoprefixer": "^9.8.8",
"postcss-cli": "^8.0.0",
"postcss": "^8.0.0"
}
```
{{% /alert %}}
-Alternatively, you can follow the same instructions but specify your **Deploy settings** in a [`netlify.toml` file](https://docs.netlify.com/configure-builds/file-based-configuration/) in your repo rather than in the **Deploy settings** page. You can see an example of this in the [Docsy theme repo](https://github.com/google/docsy/blob/master/netlify.toml) (though note that the build command here is a little unusual because the Docsy user guide is *inside* the theme repo).
+Alternatively, you can follow the same instructions but specify your **Deploy settings** in a [`netlify.toml` file](https://docs.netlify.com/configure-builds/file-based-configuration/) in your repo rather than in the **Deploy settings** page. You can see an example of this in the [Docsy theme repo](https://github.com/google/docsy/blob/main/netlify.toml) (though note that the build command here is a little unusual because the Docsy user guide is *inside* the theme repo).
If you have an existing deployment you can view and update the relevant information by selecting the site from your list of sites in Netlify, then clicking **Site settings** - **Build and deploy**. Ensure that **Ubuntu Xenial 16.04** is selected in the **Build image selection** section - if you're creating a new deployment this is used by default. You need to use this image to run the extended version of Hugo.
diff --git a/userguide/content/en/docs/Examples/_index.md b/userguide/content/en/docs/Examples/_index.md
index 26404f32a6..7b88bc56b6 100644
--- a/userguide/content/en/docs/Examples/_index.md
+++ b/userguide/content/en/docs/Examples/_index.md
@@ -16,8 +16,8 @@ Example sites that have low to no customization:
| [This Docsy documentation site](/docs) | https://github.com/google/docsy |
| ["Goldydocs" - a Docsy example site](https://example.docsy.dev) | https://github.com/google/docsy-example |
| https://www.kubeflow.org/ | https://github.com/kubeflow/website |
-| https://agones.dev/site/ | https://github.com/googleforgames/agones/tree/master/site |
-| https://googlecontainertools.github.io/kpt/ | https://github.com/GoogleContainerTools/kpt/tree/master/docs |
+| https://agones.dev/site/ | https://github.com/googleforgames/agones/tree/main/site |
+| https://googlecontainertools.github.io/kpt/ | https://github.com/GoogleContainerTools/kpt/tree/main/docs |
| [Navidrome Music Server](https://www.navidrome.org) | https://github.com/navidrome/website |
| https://docs.agilebase.co.uk/ | https://github.com/okohll/abdocs |
| https://jvmperf.net/ | https://github.com/cchesser/java-perf-workshop |
diff --git a/userguide/content/en/docs/Updating/_index.md b/userguide/content/en/docs/Updating/_index.md
index f7f33d708d..f7dc2a7843 100644
--- a/userguide/content/en/docs/Updating/_index.md
+++ b/userguide/content/en/docs/Updating/_index.md
@@ -15,7 +15,7 @@ all the new commits or changes that have been merged since the point in time tha
submodule, or last updated. Updating won't affect any modifications that you made in your own project to
[override the Docsy look and feel](/docs/adding-content/lookandfeel/), as your overrides
don't modify the theme itself. For details about what has changed in the theme, see the list of
-[Docsy commits](https://github.com/google/docsy/commits/master).
+[Docsy commits](https://github.com/google/docsy/commits/main).
Depending on how you chose to use Docsy, follow the corresponding steps to update the theme:
@@ -36,7 +36,7 @@ If you are using the Docsy theme as a submodule in your project (for example, if
1. Push the commit to your project repo. For example, run:
- git push origin master
+ git push origin main
## Update your Docsy clone
@@ -54,7 +54,6 @@ the `themes` folder in your project, then you use the `git pull` command:
1. Update your local clone:
- git pull origin master
+ git pull origin main
If you have made any local changes to the cloned theme, you must manually resolve any merge conflicts.
-