Skip to content

Commit

Permalink
Add link checker and begin fixing errant links
Browse files Browse the repository at this point in the history
Signed-off-by: lucperkins <lucperkins@gmail.com>
  • Loading branch information
lucperkins committed Feb 17, 2020
1 parent 407e398 commit e06d327
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ resources/
# Content from goharbor/harbor repo
content/docs/

# Link checker artifacts
bin/
tmp/

# Packages #
############
*.7z
Expand Down
4 changes: 4 additions & 0 deletions .htmltest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
DirectoryPath: public
IgnoreDirectoryMissingTrailingSlash: true
CheckExternal: false
IgnoreAltMissing: true
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
clean:
rm -rf public resources

prepare:
git submodule foreach git merge origin/master
cp -rf harbor/docs content
Expand All @@ -18,3 +21,11 @@ preview-build: prepare
--buildDrafts \
--buildFuture \
--minify

link-checker-setup:
curl https://htmltest.wjdp.uk | bash

run-checker:
bin/htmltest

check-links: clean production-build link-checker-setup run-checker
3 changes: 1 addition & 2 deletions content/blog/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ Harbor repo. Now we're ready to create a Pull Request.

#### Creating a Pull Request
This is perhaps the easiest part of the process. Head over to your fork on
GitHub:
[https://www.github.com/<your_username>/harbor]()https://www.github.com/<your_username>/harbor).
GitHub at https://www.github.com/**your_username**/harbor.

A banner at the top of the repo will present you with the option of [creating
a pull request](https://help.github.com/articles/creating-a-pull-request/).
Expand Down
2 changes: 1 addition & 1 deletion content/blog/harbor-1.7.0-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ who've spent time working on Harbor and contributing to the project:

* [Brett Johnson](https://twitter.com/brettjohnson008)
* [Christian Witts](https://github.com/ChristianWitts)
* [Jacky Wu](Colstuwjx)
* [Jacky Wu](https://github.com/Colstuwjx)
* [Frank Kung](https://github.com/kofj)
* [Jeff Lee Wei Che](https://github.com/jeffweilee)
* [Jeremy Wilken](https://twitter.com/gnomeontherun)
Expand Down
2 changes: 1 addition & 1 deletion content/blog/harbor-1.9.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The introduction of quotas allows project administrators to exercise control ove

In addition to project quotas, version 1.9 also includes a complementary feature called tag retention to better manage image lifecycle and optimize storage allocation. A repository can rapidly accumulate a large number of image tags, especially if Harbor is hooked into a continuous integration system generating automatic builds. Many of the builds become obsolete or insecure after a given time or after they have been superseded by a subsequent build. To free up space taken up by these images in order to adhere to regulatory and compliance requirements, project administrators can define retention policies on selective repos that will retain images with certain matching image tags while the rest of the tags and their associated blobs are deleted. Image tags, which can be manually generated or automatically generated from CI/CD pipelines, contain rich metadata information about the environment and usage of images and are sufficient as criteria for defining retention policies.

![Tag Retention](../imgs/tag-retention.png)
![Tag Retention](../img/tag-retention.png)

## CVE Exception Policy

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
<meta name="twitter:site" content="@{{ $twitterHandle }}">
<meta name="twitter:creator" content="@{{ $twitterHandle }}">

<link rel="canonical" content="{{ .Permalink }}">
<link rel="canonical" href="{{ .Permalink }}">
<link rel="shortcut icon" href="/favicon.png" type="image/png">
{{ hugo.Generator }}
8 changes: 4 additions & 4 deletions layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
</a>

{{ if $menu }}
<a role="button" class="navbar-burger" data-target="navbar-menu" aria-label="menu" aria-expanded="false">
<div role="button" class="navbar-burger" data-target="navbar-menu" aria-label="menu" aria-expanded="false">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
{{ end }}
</div>

Expand Down Expand Up @@ -60,9 +60,9 @@
{{ end }}

<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link has-text-weight-bold">
<p class="navbar-link has-text-weight-bold">
Docs
</a>
</p>

<div class="navbar-dropdown is-right">
{{ range $versions }}
Expand Down

0 comments on commit e06d327

Please sign in to comment.