mirror of
https://github.com/EyeTrackVR/EyeTrackVR-Docs.git
synced 2025-11-04 14:49:44 +08:00
update
This commit is contained in:
parent
42ade2ef78
commit
05c6524d73
54
.github/workflows/write_file.yml
vendored
54
.github/workflows/write_file.yml
vendored
@ -2,11 +2,11 @@
|
||||
|
||||
name: Write File
|
||||
on:
|
||||
# Triggers the workflow on push or pull request events but only for the main branch
|
||||
# Triggers the workflow on push or pull request events but only for the docs branch
|
||||
push:
|
||||
branches: [ docs ]
|
||||
branches: [docs]
|
||||
pull_request:
|
||||
branches: [ docs ]
|
||||
branches: [docs]
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
@ -32,7 +32,7 @@ jobs:
|
||||
description: 'Documentation for OpenAir Cyan and related projects'
|
||||
author: 'ZanzyTHEbar'
|
||||
email: info@h-bat.com
|
||||
url: "https://openair-collective.github.io"
|
||||
url: 'https://openair-collective.github.io'
|
||||
|
||||
# Build settings
|
||||
remote_theme: just-the-docs/just-the-docs
|
||||
@ -43,7 +43,30 @@ jobs:
|
||||
previews: 3
|
||||
|
||||
permalink: pretty
|
||||
exclude: ["node_modules/", "*.gemspec", "*.gem", "Gemfile", "Gemfile.lock", "package.json", "package-lock.json", "script/", "LICENSE.txt", "lib/", "bin/", "README.md", "Rakefile", "docs/tests/"]
|
||||
exclude:
|
||||
[
|
||||
'node_modules/',
|
||||
'*.gemspec',
|
||||
'*.gem',
|
||||
'gemfiles/',
|
||||
'Gemfile',
|
||||
'Gemfile.lock',
|
||||
'package.json',
|
||||
'package-lock.json',
|
||||
'script/',
|
||||
'LICENSE.txt',
|
||||
'lib/',
|
||||
'bin/',
|
||||
'Rakefile',
|
||||
'docs/tests/',
|
||||
'.sass-cache/',
|
||||
'.jekyll-cache/',
|
||||
'node_modules/',
|
||||
'vendor/bundle/',
|
||||
'vendor/cache/',
|
||||
'vendor/gems/',
|
||||
'vendor/ruby/',
|
||||
]
|
||||
|
||||
plugins:
|
||||
- jekyll-feed
|
||||
@ -52,20 +75,8 @@ jobs:
|
||||
- jekyll-mermaid
|
||||
- jekyll-spaceship
|
||||
|
||||
exclude:
|
||||
- .sass-cache/
|
||||
- .jekyll-cache/
|
||||
- gemfiles/
|
||||
- Gemfile
|
||||
- Gemfile.lock
|
||||
- node_modules/
|
||||
- vendor/bundle/
|
||||
- vendor/cache/
|
||||
- vendor/gems/
|
||||
- vendor/ruby/
|
||||
|
||||
include: ['_pages']
|
||||
timezone: "America/New_York"
|
||||
timezone: 'America/New_York'
|
||||
|
||||
# Search options
|
||||
preview_words_before: 5
|
||||
@ -87,11 +98,11 @@ jobs:
|
||||
|
||||
# Enable Back to Top bottom for all pages
|
||||
back_to_top: true
|
||||
back_to_top_text: "Top"
|
||||
back_to_top_text: 'Top'
|
||||
|
||||
# Enable last edit timestamp for all pages
|
||||
last_edit_timestamp: true
|
||||
last_edit_time_format: "%b %e %Y at %I:%M %p"
|
||||
last_edit_time_format: '%b %e %Y at %I:%M %p'
|
||||
|
||||
gh_edit_link: true # show or hide edit this page link
|
||||
gh_edit_link_text: 'Edit this page on GitHub.'
|
||||
@ -111,6 +122,7 @@ jobs:
|
||||
recaptcha_site_key: 6LfKJsMfAAAAAFLjDTY0PG9RdcpLBuiuoFNyQLsh
|
||||
chunked_comment_loading: true
|
||||
lazy_load_comments: true
|
||||
comment_replies_enabled: true"
|
||||
comment_replies_enabled: true
|
||||
"
|
||||
write-mode: overwrite
|
||||
- run: echo "✍ File written with status ${{ job.status }}."
|
||||
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
/.vscode
|
||||
/docs/_site
|
||||
/docs/.bundle
|
||||
/docs/vendor
|
||||
/docs/vendor
|
||||
/docs/assets/js/zzzz-search-data.json
|
||||
@ -1,72 +0,0 @@
|
||||
---
|
||||
permalink: /assets/js/search-data.json
|
||||
---
|
||||
{
|
||||
{%- assign i = 0 -%}
|
||||
{%- assign pages_array = | split: -%}
|
||||
{%- assign pages_array = pages_array | push: site.html_pages -%}
|
||||
{%- if site.just_the_docs.collections -%}
|
||||
{%- for collection_entry in site.just_the_docs.collections -%}
|
||||
{%- assign collection_key = collection_entry[0] -%}
|
||||
{%- assign collection_value = collection_entry[1] -%}
|
||||
{%- assign collection = site[collection_key] -%}
|
||||
{%- if collection_value.search_exclude != true -%}
|
||||
{%- assign pages_array = pages_array | push: collection -%}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
{%- endif -%}
|
||||
{%- for pages in pages_array -%}
|
||||
{%- for page in pages -%}
|
||||
{%- if page.title and page.search_exclude != true -%}
|
||||
{%- assign page_content = page.content -%}
|
||||
{%- assign heading_level = site.search.heading_level | default: 2 -%}
|
||||
{%- for j in (2..heading_level) -%}
|
||||
{%- assign tag = '<h' | append: j -%}
|
||||
{%- assign closing_tag = '</h' | append: j -%}
|
||||
{%- assign page_content = page_content | replace: tag, '<h1' | replace: closing_tag, '</h1' -%}
|
||||
{%- endfor -%}
|
||||
{%- assign parts = page_content | split: '<h1' -%}
|
||||
{%- assign title_found = false -%}
|
||||
{%- for part in parts offset: 1 -%}
|
||||
{%- assign titleAndContent = part | split: '</h1>' -%}
|
||||
{%- assign title = titleAndContent[0] | replace_first: '>', '<h1>' | split: '<h1>' -%}
|
||||
{%- assign title = title[1] | strip_html -%}
|
||||
{%- assign content = titleAndContent[1] -%}
|
||||
{%- assign url = page.url -%}
|
||||
{%- if title == page.title and parts[0] == '' -%}
|
||||
{%- assign title_found = true -%}
|
||||
{%- else -%}
|
||||
{%- assign id = titleAndContent[0] -%}
|
||||
{%- assign id = id | split: 'id="' -%}
|
||||
{%- if id.size == 2 -%}
|
||||
{%- assign id = id[1] -%}
|
||||
{%- assign id = id | split: '"' -%}
|
||||
{%- assign id = id[0] -%}
|
||||
{%- capture url -%}{{ url | append: '#' | append: id }}{%- endcapture -%}
|
||||
{%- endif -%}
|
||||
{%- endif -%}
|
||||
{%- unless i == 0 -%},{%- endunless -%}
|
||||
"{{ i }}": {
|
||||
"doc": {{ page.title | jsonify }},
|
||||
"title": {{ title | jsonify }},
|
||||
"content": {{ content | replace: '</h', ' . </h' | replace: '<hr', ' . <hr' | replace: '</p', ' . </p' | replace: '<ul', ' . <ul' | replace: '</ul', ' . </ul' | replace: '<ol', ' . <ol' | replace: '</ol', ' . </ol' | replace: '</tr', ' . </tr' | replace: '<li', ' | <li' | replace: '</li', ' | </li' | replace: '</td', ' | </td' | replace: '<td', ' | <td' | replace: '</th', ' | </th' | replace: '<th', ' | <th' | strip_html | remove: 'Table of contents' | normalize_whitespace | replace: '. . .', '.' | replace: '. .', '.' | replace: '| |', '|' | append: ' ' | jsonify }},
|
||||
"url": "{{ url | relative_url }}",
|
||||
"relUrl": "{{ url }}"
|
||||
}
|
||||
{%- assign i = i | plus: 1 -%}
|
||||
{%- endfor -%}
|
||||
{%- unless title_found -%}
|
||||
{%- unless i == 0 -%},{%- endunless -%}
|
||||
"{{ i }}": {
|
||||
"doc": {{ page.title | jsonify }},
|
||||
"title": {{ page.title | jsonify }},
|
||||
"content": {{ parts[0] | replace: '</h', ' . </h' | replace: '<hr', ' . <hr' | replace: '</p', ' . </p' | replace: '<ul', ' . <ul' | replace: '</ul', ' . </ul' | replace: '<ol', ' . <ol' | replace: '</ol', ' . </ol' | replace: '</tr', ' . </tr' | replace: '<li', ' | <li' | replace: '</li', ' | </li' | replace: '</td', ' | </td' | replace: '<td', ' | <td' | replace: '</th', ' | </th' | replace: '<th', ' | <th' | strip_html | remove: 'Table of contents' | normalize_whitespace | replace: '. . .', '.' | replace: '. .', '.' | replace: '| |', '|' | append: ' ' | jsonify }},
|
||||
"url": "{{ page.url | relative_url }}",
|
||||
"relUrl": "{{ page.url }}"
|
||||
}
|
||||
{%- assign i = i | plus: 1 -%}
|
||||
{%- endunless -%}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
{%- endfor %}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user