Skip to content

Commit

Permalink
revert changes in jekyll_files except jekyll_files/index.md and jekyl…
Browse files Browse the repository at this point in the history
…l_files/docs/*
  • Loading branch information
shiyuanzhao-lf committed Oct 30, 2023
1 parent 111199b commit 80d1021
Show file tree
Hide file tree
Showing 55 changed files with 1,772 additions and 1,912 deletions.
49 changes: 23 additions & 26 deletions jekyll_files/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
<!--Copyright (c) Laserfiche.
Licensed under the MIT License. See LICENSE.md in the project root for license information.-->

---
layout: default
title: Changelog
nav_order: 4
---
# Laserfiche SharePoint Online Integration Changelog

## 1.0.0.280

### Features

- Initial release
- Ability to save documents to Laserfiche from SharePoint with mapped metadata
- Ability to view your Laserfiche repository from within SharePoint

### Known Issues
- **488127:** Importing file from repository explorer hits a dead end when invalid metadata is entered
- **Workaround:** Press the cancel button and restart import process.
- **488097:** Admin Configuration page appears interactive when user is logged out
- **Workaround:** To edit the configuration, click the "Sign In" button.
- **487980:** If configured Laserfiche template is deleted, profile configuration page does not show a good error.
- **Workaround:** Delete the profile or reconfigure the metadata of the profile.

---
layout: default
title: Changelog
nav_order: 4
---
# Laserfiche SharePoint Online Integration Changelog

## 1.0.0.280

### Features

- Initial release
- Ability to save documents to Laserfiche from SharePoint with mapped metadata
- Ability to view your Laserfiche repository from within SharePoint

### Known Issues
- **488127:** Importing file from repository explorer hits a dead end when invalid metadata is entered
- **Workaround:** Press the cancel button and restart import process.
- **488097:** Admin Configuration page appears interactive when user is logged out
- **Workaround:** To edit the configuration, click the "Sign In" button.
- **487980:** If configured Laserfiche template is deleted, profile configuration page does not show a good error.
- **Workaround:** Delete the profile or reconfigure the metadata of the profile.

5 changes: 1 addition & 4 deletions jekyll_files/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
<!--Copyright (c) Laserfiche.
Licensed under the MIT License. See LICENSE.md in the project root for license information.-->

The styles here are adapted from the [Just-The-Docs](https://github.com/just-the-docs/just-the-docs) jekyll theme.
The styles here are adapted from the [Just-The-Docs](https://github.com/just-the-docs/just-the-docs) jekyll theme.
135 changes: 66 additions & 69 deletions jekyll_files/_config.yml
Original file line number Diff line number Diff line change
@@ -1,69 +1,66 @@
# Copyright (c) Laserfiche.
# Licensed under the MIT License. See LICENSE in the project root for license information.

# Jekyll Documentation Generator Configuration File

title: Laserfiche SharePoint Online Integration

exclude:
# from https://github.com/jekyll/jekyll/blob/master/lib/site_template/_config.yml:
- .sass-cache/
- .jekyll-cache/
- gemfiles/
- Gemfile
- Gemfile.lock
- node_modules/
- vendor/bundle/
- vendor/cache/
- vendor/gems/
- vendor/ruby/
# specific to the theme website:
- bin/
- lib/
- "*.gemspec"
- "*.gem"
- LICENSE.txt
- package.json
- package-lock.json
- Rakefile
- README.md
- CODE_OF_CONDUCT.md
- docker-compose.yml
- Dockerfile
# theme test code
- fixtures/

search_enabled: true
search:
# Split pages into sections that can be searched individually
# Supports 1 - 6, default: 2
heading_level: 2
# Maximum amount of previews per search result
# Default: 3
previews: 2
# Maximum amount of words to display before a matched word in the preview
# Default: 5
preview_words_before: 3
# Maximum amount of words to display after a matched word in the preview
# Default: 10
preview_words_after: 3
# Set the search token separator
# Default: /[\s\-/]+/
# Example: enable support for hyphenated search words
tokenizer_separator: /[\s/]+/
# Display the relative url in search results
# Supports true (default) or false
rel_url: true
# Enable or disable the search button that appears in the bottom right corner of every page
# Supports true or false (default)
button: false

plugins:
- jekyll-seo-tag
# - jekyll-github-metadata
- jekyll-include-cache

heading_anchors: true
color_scheme: lf-styles
favicon_ico: "/assets/favicon.webp"

# Jekyll Documentation Generator Configuration File

title: Laserfiche SharePoint Online Integration

exclude:
# from https://github.com/jekyll/jekyll/blob/master/lib/site_template/_config.yml:
- .sass-cache/
- .jekyll-cache/
- gemfiles/
- Gemfile
- Gemfile.lock
- node_modules/
- vendor/bundle/
- vendor/cache/
- vendor/gems/
- vendor/ruby/
# specific to the theme website:
- bin/
- lib/
- "*.gemspec"
- "*.gem"
- LICENSE.txt
- package.json
- package-lock.json
- Rakefile
- README.md
- CODE_OF_CONDUCT.md
- docker-compose.yml
- Dockerfile
# theme test code
- fixtures/

search_enabled: true
search:
# Split pages into sections that can be searched individually
# Supports 1 - 6, default: 2
heading_level: 2
# Maximum amount of previews per search result
# Default: 3
previews: 2
# Maximum amount of words to display before a matched word in the preview
# Default: 5
preview_words_before: 3
# Maximum amount of words to display after a matched word in the preview
# Default: 10
preview_words_after: 3
# Set the search token separator
# Default: /[\s\-/]+/
# Example: enable support for hyphenated search words
tokenizer_separator: /[\s/]+/
# Display the relative url in search results
# Supports true (default) or false
rel_url: true
# Enable or disable the search button that appears in the bottom right corner of every page
# Supports true or false (default)
button: false

plugins:
- jekyll-seo-tag
# - jekyll-github-metadata
- jekyll-include-cache

heading_anchors: true
color_scheme: lf-styles
favicon_ico: "/assets/favicon.webp"

33 changes: 15 additions & 18 deletions jekyll_files/_includes/components/aux_nav.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
<!--Copyright (c) Laserfiche.
Licensed under the MIT License. See LICENSE.md in the project root for license information.-->

<nav aria-label="Auxiliary" class="aux-nav">
<ul class="aux-nav-list">
{% for link in site.aux_links %}
<li class="aux-nav-list-item">
<a href="{{ link.last }}" class="site-button"
{% if site.aux_links_new_tab %}
target="_blank" rel="noopener noreferrer"
{% endif %}
>
{{ link.first }}
</a>
</li>
{% endfor %}
</ul>
</nav>
<nav aria-label="Auxiliary" class="aux-nav">
<ul class="aux-nav-list">
{% for link in site.aux_links %}
<li class="aux-nav-list-item">
<a href="{{ link.last }}" class="site-button"
{% if site.aux_links_new_tab %}
target="_blank" rel="noopener noreferrer"
{% endif %}
>
{{ link.first }}
</a>
</li>
{% endfor %}
</ul>
</nav>
89 changes: 43 additions & 46 deletions jekyll_files/_includes/components/breadcrumbs.html
Original file line number Diff line number Diff line change
@@ -1,46 +1,43 @@
<!--Copyright (c) Laserfiche.
Licensed under the MIT License. See LICENSE.md in the project root for license information.-->

{%- comment -%}
Include as: {%- include components/breadcrumbs.html -%}
Depends on: page, site.
Results in: HTML for the breadcrumbs component.
Overwrites:
pages_list, parent_page, grandparent_page.
{%- endcomment -%}

{%- if page.url != "/" and page.parent -%}

{%- assign pages_list = site[page.collection]
| default: site.html_pages
| where_exp: "item", "item.title != nil"
| where_exp: "item", "item.has_children != nil" -%}

{%- if page.grand_parent -%}
{%- assign parent_page = pages_list
| where: "title", page.parent
| where: "parent", page.grand_parent
| first -%}
{%- assign grandparent_page = pages_list
| where: "title", page.grand_parent
| first -%}
{%- else -%}
{%- assign parent_page = pages_list
| where: "title", page.parent
| where_exp: "item", "item.parent == nil"
| first -%}
{%- endif -%}

<nav aria-label="Breadcrumb" class="breadcrumb-nav">
<ol class="breadcrumb-nav-list">
{% if page.parent -%}
{%- if page.grand_parent %}
<li class="breadcrumb-nav-list-item"><a href="{{ grandparent_page.url | relative_url }}">{{ page.grand_parent }}</a></li>
{%- endif %}
<li class="breadcrumb-nav-list-item"><a href="{{ parent_page.url | relative_url }}">{{ page.parent }}</a></li>
{% endif -%}
<li class="breadcrumb-nav-list-item"><span>{{ page.title }}</span></li>
</ol>
</nav>

{%- endif -%}
{%- comment -%}
Include as: {%- include components/breadcrumbs.html -%}
Depends on: page, site.
Results in: HTML for the breadcrumbs component.
Overwrites:
pages_list, parent_page, grandparent_page.
{%- endcomment -%}

{%- if page.url != "/" and page.parent -%}

{%- assign pages_list = site[page.collection]
| default: site.html_pages
| where_exp: "item", "item.title != nil"
| where_exp: "item", "item.has_children != nil" -%}

{%- if page.grand_parent -%}
{%- assign parent_page = pages_list
| where: "title", page.parent
| where: "parent", page.grand_parent
| first -%}
{%- assign grandparent_page = pages_list
| where: "title", page.grand_parent
| first -%}
{%- else -%}
{%- assign parent_page = pages_list
| where: "title", page.parent
| where_exp: "item", "item.parent == nil"
| first -%}
{%- endif -%}

<nav aria-label="Breadcrumb" class="breadcrumb-nav">
<ol class="breadcrumb-nav-list">
{% if page.parent -%}
{%- if page.grand_parent %}
<li class="breadcrumb-nav-list-item"><a href="{{ grandparent_page.url | relative_url }}">{{ page.grand_parent }}</a></li>
{%- endif %}
<li class="breadcrumb-nav-list-item"><a href="{{ parent_page.url | relative_url }}">{{ page.parent }}</a></li>
{% endif -%}
<li class="breadcrumb-nav-list-item"><span>{{ page.title }}</span></li>
</ol>
</nav>

{%- endif -%}
69 changes: 33 additions & 36 deletions jekyll_files/_includes/components/children_nav.html
Original file line number Diff line number Diff line change
@@ -1,36 +1,33 @@
<!--Copyright (c) Laserfiche.
Licensed under the MIT License. See LICENSE.md in the project root for license information.-->

{%- comment -%}
Include as: {%- include components/children_nav.html -%}
Depends on: page, site.
Results in: HTML for the children-navigation component.
Includes:
sorted_pages.html
toc_heading_custom.html
Overwrites:
child_pages.
{%- endcomment -%}

{%- if page.has_children == true and page.has_toc != false -%}
{%- assign child_pages = site[page.collection]
| default: site.html_pages
| where: "parent", page.title
| where: "grand_parent", page.parent -%}

{%- include sorted_pages.html pages = child_pages -%}

{%- if page.child_nav_order == 'desc' or page.child_nav_order == 'reversed' -%}
{%- assign sorted_pages = sorted_pages | reverse -%}
{%- endif -%}
{%- endif -%}

<hr>
{% include toc_heading_custom.html %}
<ul>
{% for child in sorted_pages %}
<li>
<a href="{{ child.url | relative_url }}">{{ child.title }}</a>{% if child.summary %} - {{ child.summary }}{% endif %}
</li>
{% endfor %}
</ul>
{%- comment -%}
Include as: {%- include components/children_nav.html -%}
Depends on: page, site.
Results in: HTML for the children-navigation component.
Includes:
sorted_pages.html
toc_heading_custom.html
Overwrites:
child_pages.
{%- endcomment -%}

{%- if page.has_children == true and page.has_toc != false -%}
{%- assign child_pages = site[page.collection]
| default: site.html_pages
| where: "parent", page.title
| where: "grand_parent", page.parent -%}

{%- include sorted_pages.html pages = child_pages -%}

{%- if page.child_nav_order == 'desc' or page.child_nav_order == 'reversed' -%}
{%- assign sorted_pages = sorted_pages | reverse -%}
{%- endif -%}
{%- endif -%}

<hr>
{% include toc_heading_custom.html %}
<ul>
{% for child in sorted_pages %}
<li>
<a href="{{ child.url | relative_url }}">{{ child.title }}</a>{% if child.summary %} - {{ child.summary }}{% endif %}
</li>
{% endfor %}
</ul>
Loading

0 comments on commit 80d1021

Please sign in to comment.