~xdavidwu/xdavidwu.link

b5a0ac63e9b06ec9bf4a4d3f96c8959d8dfe8be5 — xdavidwu 7 months ago 1263d93
fa: self-host
4 files changed, 19 insertions(+), 2 deletions(-)

M .gitlab-ci.yml
M _includes/head.html
M package-lock.json
M package.json
M .gitlab-ci.yml => .gitlab-ci.yml +2 -0
@@ 42,6 42,8 @@ npm-vendor:
  artifacts:
    paths:
      - assets/js/lunr/lunr.min.js
      - assets/css/fork-awesome.min.css
      - assets/fonts

pages:
  stage: deploy

M _includes/head.html => _includes/head.html +1 -1
@@ 12,4 12,4 @@
  <link rel="stylesheet" href="https://latest.cactus.chat/style.css" type="text/css">
{% endif %}
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.1.7/css/fork-awesome.min.css" integrity="sha256-gsmEoJAws/Kd3CjuOQzLie5Q3yshhvmo7YNtBG7aaEY=" crossorigin="anonymous">
<link rel="stylesheet" href="{{ '/assets/css/fork-awesome.min.css' | relative_url }}">

M package-lock.json => package-lock.json +14 -0
@@ 5,9 5,18 @@
  "packages": {
    "": {
      "dependencies": {
        "fork-awesome": "^1.2.0",
        "lunr": "^2.3.9"
      }
    },
    "node_modules/fork-awesome": {
      "version": "1.2.0",
      "resolved": "https://registry.npmjs.org/fork-awesome/-/fork-awesome-1.2.0.tgz",
      "integrity": "sha512-MNwTBnnudMIweHfDtTY8TeR5fxIAZ2w9o8ITn5XDySqdxa4k5AH8IuAMa89RVxDxgPNlosZxqkFKN5UmHXuYSw==",
      "engines": {
        "node": ">=0.10.3"
      }
    },
    "node_modules/lunr": {
      "version": "2.3.9",
      "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz",


@@ 15,6 24,11 @@
    }
  },
  "dependencies": {
    "fork-awesome": {
      "version": "1.2.0",
      "resolved": "https://registry.npmjs.org/fork-awesome/-/fork-awesome-1.2.0.tgz",
      "integrity": "sha512-MNwTBnnudMIweHfDtTY8TeR5fxIAZ2w9o8ITn5XDySqdxa4k5AH8IuAMa89RVxDxgPNlosZxqkFKN5UmHXuYSw=="
    },
    "lunr": {
      "version": "2.3.9",
      "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz",

M package.json => package.json +2 -1
@@ 1,9 1,10 @@
{
  "private": true,
  "scripts": {
    "copy-vendor": "cp node_modules/lunr/lunr.min.js assets/js/lunr/lunr.min.js"
    "copy-vendor": "cp node_modules/lunr/lunr.min.js assets/js/lunr/ && cp node_modules/fork-awesome/css/fork-awesome.min.css assets/css/ && cp -r node_modules/fork-awesome/fonts assets/"
  },
  "dependencies": {
    "fork-awesome": "^1.2.0",
    "lunr": "^2.3.9"
  }
}