@trimble-oss/modus-docs-hugo-theme 1.0.0-alpha6 → 1.0.0-alpha7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  <!doctype html>
2
- <html lang="en">
2
+ <html lang="{{ with .Site.LanguageCode }}{{- . -}}{{ else }}en-US{{- end -}}">
3
3
 
4
4
  <head>
5
5
  <meta charset="utf-8">
@@ -6,7 +6,7 @@
6
6
  <script>document.documentElement.classList.remove('no-js');</script>
7
7
 
8
8
  <!-- Load Modus Bootstrap CSS from CDN -->
9
- <link rel="stylesheet" href="https://modus-bootstrap.netlify.app/docs/v2/dist/css/modus-bootstrap.min.css">
9
+ <link rel="stylesheet" href="{{- .Site.BaseURL -}}css/modus-bootstrap.min.css">
10
10
 
11
11
  <!-- Compiles and minifies the sites Sass files from /assets/css/ -->
12
12
  {{- $sassOptions := (dict "enableSourceMap" true) -}}
@@ -62,7 +62,7 @@
62
62
  <script nomodule crossorigin="anonymous"
63
63
  src="https://polyfill.io/v3/polyfill.min.js?features=default%2CNumber.parseInt%2CNumber.parseFloat%2CArray.prototype.find%2CArray.prototype.includes"></script>
64
64
  <script
65
- nomodule>window.MSInputMethodContext && document.documentMode && document.write('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-ie11@5.3.1/css/bootstrap-ie11.min.css"><script src="https://cdn.jsdelivr.net/combine/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js,npm/ie11-custom-properties@4,npm/element-qsa-scope@1"><\/script>');</script>
65
+ nomodule>window.MSInputMethodContext && document.documentMode && document.write('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-ie11@5/css/bootstrap-ie11.min.css"><script src="https://cdn.jsdelivr.net/combine/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js,npm/ie11-custom-properties@4,npm/element-qsa-scope@1"><\/script>');</script>
66
66
 
67
67
  {{- if not .Params.hideSearch -}}
68
68
  <script>
@@ -81,7 +81,7 @@
81
81
  {{ end }}
82
82
 
83
83
  <!-- Loads Bootstrap 5 JS from CDN -->
84
- <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
84
+ <script src="{{- .Site.BaseURL -}}js/bootstrap.bundle.min.js"></script>
85
85
 
86
86
  {{ partial "analytics" . }}
87
87
 
@@ -1,10 +1,10 @@
1
- <div class="search-container d-inline-block position-relative">
1
+ <search class="search-container d-inline-block position-relative" role="search">
2
2
  <input class="form-control form-control-search position-absolute" aria-label="Search" id="search-by" type="search"
3
3
  name="q" placeholder="Search..." autocomplete="off" title="" required>
4
4
  <label class="btn btn-lg btn-icon-only border-0 btn-search position-absolute px-1" for="search-by">
5
5
  <i class="modus-icons notranslate text-white" aria-hidden="true">search</i>
6
6
  </label>
7
- </div>
7
+ </search>
8
8
 
9
9
  <script>
10
10
  // Lose Focus on Input when user presses Escape only if no input
@@ -16,4 +16,4 @@
16
16
  }
17
17
  }
18
18
  });
19
- </script>
19
+ </script>
@@ -1,10 +1,10 @@
1
1
  <div class="skippy visually-hidden-focusable overflow-hidden">
2
- <div class="text-center w-100">
3
- <a class="visually-hidden btn btn-primary rounded p-1 m-2" href="#main">Skip to
2
+ <div class="text-center container-fluid">
3
+ <a class="btn btn-primary rounded p-1 m-2" href="#main">Skip to
4
4
  main content</a>
5
5
 
6
6
  {{ if (eq .Page.Layout "docs") }}
7
- <a class="visually-hidden d-none d-md-inline-flex p-1 mb-1" href="#bd-docs-nav">Skip to docs
7
+ <a class="d-md-inline-flex p-1 mb-1" href="#bd-docs-nav">Skip to docs
8
8
  navigation</a>
9
9
  {{- end }}
10
10
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trimble-oss/modus-docs-hugo-theme",
3
- "version": "1.0.0-alpha6",
3
+ "version": "1.0.0-alpha7",
4
4
  "description": "A Documentation theme for Hugo built by Trimble",
5
5
  "homepage": "https://github.com/trimble-oss/modus-docs-hugo-theme",
6
6
  "bugs": {
@@ -19,22 +19,23 @@
19
19
  "lint-html": "htmlhint \"build/**/index.html\"",
20
20
  "lint-js": "eslint assets/js/*.js --fix",
21
21
  "lint-links": "npx linkinator ./",
22
- "lint-markdown": "npx markdownlint-cli content/**/*.md",
22
+ "lint-markdown": "npx markdownlint-cli content/**/*.md --fix",
23
23
  "lint-spellcheck": "npx cspell \"content/**/*.md\" --no-progress",
24
24
  "prettier": "prettier --write \"**/*.{json,js,md,svg}\"",
25
25
  "serve": "hugo serve --port 4000 --disableFastRender --navigateToChanged",
26
26
  "test": "npm run lint-css && npm run lint-html && npm run lint-js"
27
27
  },
28
28
  "dependencies": {
29
+ "@trimble-oss/modus-bootstrap": "2.0.0-alpha1",
29
30
  "@trimble-oss/modus-icons": "1.4.0"
30
31
  },
31
32
  "devDependencies": {
32
- "autoprefixer": "10.4.15",
33
+ "autoprefixer": "10.4.16",
33
34
  "eslint": "8.49.0",
34
35
  "eslint-config-prettier": "9.0.0",
35
36
  "htmlhint": "1.1.4",
36
37
  "hugo-bin": "0.114.2",
37
- "postcss": "8.4.29",
38
+ "postcss": "8.4.30",
38
39
  "postcss-cli": "10.1.0",
39
40
  "prettier": "3.0.3",
40
41
  "stylelint": "15.10.3",