From f5100e4e622ec749c75b21209c8a5b88f757a368 Mon Sep 17 00:00:00 2001 From: "C.J. May" Date: Mon, 28 Aug 2023 11:56:48 -0500 Subject: [PATCH 1/4] shorten test build --- .github/workflows/jekyll-test.yml | 4 ++-- docs/_config.yml | 3 +++ docs/_test.yml | 34 +++++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 docs/_test.yml diff --git a/.github/workflows/jekyll-test.yml b/.github/workflows/jekyll-test.yml index 6d6e5b3..7cd293c 100644 --- a/.github/workflows/jekyll-test.yml +++ b/.github/workflows/jekyll-test.yml @@ -22,7 +22,7 @@ jobs: - name: Compile Jekyll run: | cd docs - bundle exec jekyll build --future --verbose + bundle exec jekyll build --config _test.yml --verbose build-windows: @@ -40,4 +40,4 @@ jobs: - name: Compile Jekyll run: | cd docs - bundle exec jekyll build --future --verbose + bundle exec jekyll build --config _test.yml --verbose diff --git a/docs/_config.yml b/docs/_config.yml index abaec3d..f82cb27 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -7,6 +7,9 @@ defaults: values: layout: page +exclude: + - _test.yml + author: name: C.J. May email: winbin.wtf@cjmay.info diff --git a/docs/_test.yml b/docs/_test.yml new file mode 100644 index 0000000..415a4ac --- /dev/null +++ b/docs/_test.yml @@ -0,0 +1,34 @@ +remote_theme: jekyll/minima + +defaults: + - + scope: + path: "" # all files in project + values: + layout: page + +exclude: + - _config.yml + - Program Files + - Program Files (x86) + - ProgramData + - Users + - Windows + +include: + - Windows/System32/calc.exe + +author: + name: C.J. May + email: winbin.wtf@cjmay.info + +minima: + skin: solarized + social_links: + - {platform: github, user_url: "https://github.com/lawndoc"} + - {platform: twitter, user_url: "https://twitter.com/lawndoc"} + - {platform: linkedin, user_url: "https://linkedin.com/in/cj-may"} + +plugins: + - jekyll-seo-tag + - jekyll-remote-theme From 4b86d1a6d6ec3a13cc8a0c6f6c12abb62e491ab6 Mon Sep 17 00:00:00 2001 From: "C.J. May" Date: Mon, 28 Aug 2023 12:04:58 -0500 Subject: [PATCH 2/4] fix search ignoring uppercase characters --- docs/_includes/directory.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_includes/directory.html b/docs/_includes/directory.html index 077cd17..4837817 100644 --- a/docs/_includes/directory.html +++ b/docs/_includes/directory.html @@ -43,7 +43,7 @@

const fileName = file.name; const isMarkdown = (/.md$/).test(fileName); const isInFilter = filter.split(' ') - .every((token) => fileName.indexOf(token.toLowerCase()) !== -1) + .every((token) => fileName.toLowerCase().indexOf(token.toLowerCase()) !== -1) return !isMarkdown && isInFilter; } } From 11ac3a80f92927657e5ee8f3cfa25f168633e043 Mon Sep 17 00:00:00 2001 From: "C.J. May" Date: Mon, 28 Aug 2023 12:33:59 -0500 Subject: [PATCH 3/4] add root listing to home page --- docs/_includes/directory.html | 14 ++++++++++++-- docs/index.md | 4 ++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/docs/_includes/directory.html b/docs/_includes/directory.html index 4837817..4ac9eb3 100644 --- a/docs/_includes/directory.html +++ b/docs/_includes/directory.html @@ -43,8 +43,18 @@

const fileName = file.name; const isMarkdown = (/.md$/).test(fileName); const isInFilter = filter.split(' ') - .every((token) => fileName.toLowerCase().indexOf(token.toLowerCase()) !== -1) - return !isMarkdown && isInFilter; + .every((token) => fileName.toLowerCase().indexOf(token.toLowerCase()) !== -1); + const isInExclusions = [ + "CNAME", + "Gemfile", + "Windows-Folder-Search.png", + "_config.yml", + "_includes", + "_layouts", + "favicon.ico", + "serviceworker.js", + ].includes(fileName); + return !isMarkdown && isInFilter && !isInExclusions; } } // Match by closest to start of word then earliest word diff --git a/docs/index.md b/docs/index.md index 939954f..fc8e15c 100644 --- a/docs/index.md +++ b/docs/index.md @@ -17,3 +17,7 @@ The scope of this documentation is only files that come with a base install of a ## For power users For programmatic access to this data, it's best to clone the [GitHub repo](https://github.com/lawndoc/winbin.wtf) and extract the data from the YAML frontmatter of each document. If this project gets popular enough, maybe we will add a REST and/or GraphQL API for easier access. + +# Documentation Root + +{% include directory.html %} \ No newline at end of file From 87ca859a61def5985242562b84910c1dc9b3d429 Mon Sep 17 00:00:00 2001 From: "C.J. May" Date: Mon, 28 Aug 2023 15:39:44 -0500 Subject: [PATCH 4/4] add more files to test build --- docs/_test.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/_test.yml b/docs/_test.yml index 415a4ac..784f13c 100644 --- a/docs/_test.yml +++ b/docs/_test.yml @@ -9,14 +9,16 @@ defaults: exclude: - _config.yml - - Program Files - - Program Files (x86) - - ProgramData - - Users - - Windows + - Program Files/ + - Program Files (x86)/ + - ProgramData/ + - Users/ + - Windows/ include: - - Windows/System32/calc.exe + - Windows/System32/calc.exe/index.md + - Windows/System32/index.md + - Windows/index.md author: name: C.J. May