Skip to content

Commit

Permalink
Docs0 v1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleperilli committed Mar 26, 2024
1 parent 0fecf1b commit e0442e5
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/fetch-commit-dates.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: fetch-commit-dates

on:
push:
branches:
- main
paths-ignore:
- '_data/commit_dates.json'
workflow_dispatch:

jobs:

Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Docs0 Changelog

## 1.0.4 (2024-03-26)
- Remove unlisted pages from search index
- Make file modified date action manually only
- Change page-list style
- Fix page-list sorting

## 1.0.3 (2024-03-09)
- Add automatic file modified date

Expand Down
2 changes: 1 addition & 1 deletion _includes/list.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% assign sorted_pages = site.mydocs | sort_natural | reverse %}
{% assign sorted_pages = site.mydocs | sort | reverse %}

{% capture _list %}
{% for _page in sorted_pages %}
Expand Down
3 changes: 1 addition & 2 deletions assets/_sass/_page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,7 @@
margin: 10px 0;
padding: 20px 30px;
background-color: var(--window-back-color);
@include border-radius(8px);
border: 1px solid var(--border-color);
border-left: 2px solid var(--border-color);
position: relative;
h3 {
margin-top: 0;
Expand Down
4 changes: 2 additions & 2 deletions assets/scripts/fuse-index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
---
var searchIndex = [{% for collection in site.collections %}{% assign colsize = collection.files | size %}{% if colsize > 0 %}{% for page in site[collection.label] %}
var searchIndex = [{% for collection in site.collections %}{% assign colsize = collection.files | size %}{% if colsize > 0 %}{% for page in site[collection.label] %}{% unless page.unlisted %}
{
"id": "{{ page.id | slugify }}",
"url": "{{ page.url | remove: 'index.html' }}",
"title": "{{ page.title }}",
"content": `{{ page.content | strip_html | remove:'"' }}`
}{% unless forloop.last %},{% endunless %}{% endfor %}{% endif %}{% endfor %}
}{% endunless %}{% unless forloop.last %},{% endunless %}{% endfor %}{% endif %}{% endfor %}
];
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Docs0",
"version": "1.0.3",
"lastUpdated": "2024-03-09",
"version": "1.0.4",
"lastUpdated": "2024-03-26",
"scripts": {
"run (incremental)": "bundle exec jekyll serve --incremental --port 4001",
"run (full)": "bundle exec jekyll serve --port 4001"
Expand Down

0 comments on commit e0442e5

Please sign in to comment.