From 35e1045d6617eb715be186aa79cac4dd2a9895b0 Mon Sep 17 00:00:00 2001 From: hawkeye116477 Date: Sun, 22 Sep 2024 13:13:22 +0200 Subject: [PATCH 1/3] =?UTF-8?q?Aktualizacja=20listy=20list=20filtr=C3=B3w?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Gitloaf odszedł na emeryturę * Jest nowy opiekun listy Web Annoyances Ultralist, bo stary nie ma czasu --- website/data/FilterLists.toml | 21 +++++++++---------- .../layouts/partials/FilterListsTable.html | 15 ------------- 2 files changed, 10 insertions(+), 26 deletions(-) diff --git a/website/data/FilterLists.toml b/website/data/FilterLists.toml index 2b6dec78dd..59c8d4bed7 100644 --- a/website/data/FilterLists.toml +++ b/website/data/FilterLists.toml @@ -198,11 +198,10 @@ category = "prywatność" [[items]] title = "Web Annoyances Ultralist " desc = "Ikony społecznościowe, paski udostępniania, banery z aplikacjami mobilnymi, prośby o pobranie aplikacji, komunikaty dot. ciasteczek/polityki prywatności/RODO, strzałki, wyskakujące okienka, ponaglania o subskrypcję/rejestrację i inne rozpraszające elementy. Pływające nagłówki i inne ruchome elementy będą przypinane." -subscribe = "https://raw.githubusercontent.com/yourduskquibbles/webannoyances/master/ultralist.txt" -issues = "https://github.com/yourduskquibbles/webannoyances/issues" -chat = "https://discord.me/yourduskquibbles" -home = "https://github.com/yourduskquibbles/webannoyances" -modules = "https://github.com/yourduskquibbles/webannoyances/tree/master/filters" +subscribe = "https://raw.githubusercontent.com/LanikSJ/webannoyances/master/ultralist.txt" +issues = "https://github.com/LanikSJ/webannoyances/issues" +home = "https://github.com/LanikSJ/webannoyances" +modules = "https://github.com/LanikSJ/webannoyances/tree/master/filters" adblocker = "uBO, AG" category = "irytujące, ciasteczka, społecznościowe" @@ -259,8 +258,8 @@ form = "https://urlhaus.abuse.ch/api/#submit" home = "https://gitlab.com/malware-filter/urlhaus-filter" category = "bezpieczeństwo" adblocker = "uBO" -mirror = "jsDelivr, GitHub, Cloudflare 1, Cloudflare 2, Gitloaf" -mirrorURL = "https://cdn.jsdelivr.net/gh/curbengh/urlhaus-filter@gh-pages/urlhaus-filter-online.txt, https://curbengh.github.io/malware-filter/urlhaus-filter-online.txt, https://malware-filter.pages.dev/urlhaus-filter-online.txt, https://urlhaus-filter.pages.dev/urlhaus-filter-online.txt, https://gitloaf.com/cdn/curbengh/urlhaus-filter/gh-pages/urlhaus-filter-online.txt" +mirror = "jsDelivr, GitHub, Cloudflare 1, Cloudflare 2" +mirrorURL = "https://cdn.jsdelivr.net/gh/curbengh/urlhaus-filter@gh-pages/urlhaus-filter-online.txt, https://curbengh.github.io/malware-filter/urlhaus-filter-online.txt, https://malware-filter.pages.dev/urlhaus-filter-online.txt, https://urlhaus-filter.pages.dev/urlhaus-filter-online.txt" [[items]] title = "KADhosts" @@ -359,8 +358,8 @@ form = "https://urlhaus.abuse.ch/api/#submit" home = "https://gitlab.com/malware-filter/urlhaus-filter" category = "bezpieczeństwo" adblocker = "hosts" -mirror = "jsDelivr, GitHub, Cloudflare 1, Cloudflare 2, Gitloaf" -mirrorURL = "https://cdn.jsdelivr.net/gh/curbengh/urlhaus-filter@gh-pages/urlhaus-filter-hosts-online.txt, https://curbengh.github.io/malware-filter/urlhaus-filter-hosts-online.txt, https://malware-filter.pages.dev/urlhaus-filter-hosts-online.txt, https://urlhaus-filter.pages.dev/urlhaus-filter-hosts-online.txt, https://gitloaf.com/cdn/curbengh/urlhaus-filter/gh-pages/urlhaus-filter-hosts-online.txt" +mirror = "jsDelivr, GitHub, Cloudflare 1, Cloudflare 2" +mirrorURL = "https://cdn.jsdelivr.net/gh/curbengh/urlhaus-filter@gh-pages/urlhaus-filter-hosts-online.txt, https://curbengh.github.io/malware-filter/urlhaus-filter-hosts-online.txt, https://malware-filter.pages.dev/urlhaus-filter-hosts-online.txt, https://urlhaus-filter.pages.dev/urlhaus-filter-hosts-online.txt" [[items]] title = "NoCoin Hosts" @@ -410,8 +409,8 @@ issues = "https://gitlab.com/malware-filter/phishing-filter/-/issues" home = "https://gitlab.com/malware-filter/phishing-filter" adblocker = "hosts" category = "bezpieczeństwo" -mirror = "jsDelivr, GitHub, Cloudflare 1, Cloudflare 2, Gitloaf" -mirrorURL = "https://cdn.jsdelivr.net/gh/curbengh/phishing-filter@gh-pages/phishing-filter-hosts.txt, https://curbengh.github.io/phishing-filter/phishing-filter-hosts.txt, https://phishing-filter.pages.dev/phishing-filter-hosts.txt, https://malware-filter.pages.dev/phishing-filter-hosts.txt, https://gitloaf.com/cdn/curbengh/phishing-filter/gh-pages/phishing-filter-hosts.txt" +mirror = "jsDelivr, GitHub, Cloudflare 1, Cloudflare 2" +mirrorURL = "https://cdn.jsdelivr.net/gh/curbengh/phishing-filter@gh-pages/phishing-filter-hosts.txt, https://curbengh.github.io/phishing-filter/phishing-filter-hosts.txt, https://phishing-filter.pages.dev/phishing-filter-hosts.txt, https://malware-filter.pages.dev/phishing-filter-hosts.txt" [[items]] title = "Dandelion Sprout's Anti-Malware Hosts" diff --git a/website/layouts/partials/FilterListsTable.html b/website/layouts/partials/FilterListsTable.html index 1bb735651c..c01050b3df 100644 --- a/website/layouts/partials/FilterListsTable.html +++ b/website/layouts/partials/FilterListsTable.html @@ -137,9 +137,6 @@

{{ T "saveSettings" Statically - - Gitloaf - {{ end }} {{ if .mirror }} {{ range $index, $mirrorURL := split $filterlist.mirrorURL ", " }} @@ -171,9 +168,6 @@

{{ T "saveSettings" Statically - - Gitloaf - {{ end }} {{ if .mirror }} {{ range $index, $mirrorURL := split $filterlist.mirrorURL ", " }} @@ -205,9 +199,6 @@

{{ T "saveSettings" Statically - - Gitloaf - @@ -229,9 +220,6 @@

{{ T "saveSettings" Statically - - Gitloaf - @@ -253,9 +241,6 @@

{{ T "saveSettings" Statically - - Gitloaf - From 3cb5b7d5d9823b6c77eb7a26ceb00a56c69474bf Mon Sep 17 00:00:00 2001 From: hawkeye116477 Date: Sun, 22 Sep 2024 15:04:22 +0200 Subject: [PATCH 2/3] Update theme and migrate to Hugo Modules --- .github/workflows/hugo.yml | 12 +++++- .gitmodules | 3 -- website/assets/scss/dark-theme.scss | 48 ---------------------- website/go.mod | 9 ++++ website/go.sum | 6 +++ website/hugo.toml | 6 ++- website/layouts/partials/head.html | 2 +- website/layouts/partials/navbar.html | 6 +-- website/layouts/partials/sidebar-tree.html | 9 +++- website/themes/docsy | 1 - 10 files changed, 40 insertions(+), 62 deletions(-) delete mode 100644 .gitmodules create mode 100644 website/go.mod create mode 100644 website/go.sum delete mode 160000 website/themes/docsy diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index c8d49897e9..e37636c981 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -11,6 +11,8 @@ on: jobs: deploy: runs-on: ubuntu-latest + env: + HUGO_CACHEDIR: /tmp/hugo_cache steps: - uses: actions/checkout@v4 with: @@ -20,7 +22,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v3 with: - hugo-version: '0.123.7' + hugo-version: '0.134.3' extended: true - name: Setup Node @@ -28,10 +30,16 @@ jobs: with: node-version: 'lts/*' + - uses: actions/cache@v4 + with: + path: ${{ env.HUGO_CACHEDIR }} + key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-hugomod- + - name: Build run: | git rm -rf ./docs - cd ./website/themes/docsy && npm install cd "$GITHUB_WORKSPACE"/website npm i -D --save autoprefixer postcss-cli postcss hugo --minify diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 4a9058b790..0000000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "website/themes/docsy"] - path = website/themes/docsy - url = https://github.com/google/docsy.git diff --git a/website/assets/scss/dark-theme.scss b/website/assets/scss/dark-theme.scss index 0604716759..9e2229c991 100644 --- a/website/assets/scss/dark-theme.scss +++ b/website/assets/scss/dark-theme.scss @@ -1,7 +1,5 @@ // @media (prefers-color-scheme: dark) { html[data-bs-theme="dark"] body { - background-color: #010101 !important; - .vscomp-dropbox, .popover-body { color: #fff !important; background-color: #222 !important; @@ -19,10 +17,6 @@ // background-color: rgba(255, 255, 255, 0.05) !important; // } - .pageinfo { - background: rgba(255, 255, 255, 0.05) !important; - } - .vscomp-option.focused { background: #333333; } @@ -31,18 +25,6 @@ background: #111111; } - .td-sidebar-nav__section-title a { - color: #dddddd; - } - - .td-sidebar-nav .td-sidebar-link__page { - color: #b6afa8; - } - - .alert { - background: black !important; - } - .bootstrap-select .notify, .bootstrap-select .no-results { background: black !important; border-color: black !important; @@ -66,19 +48,6 @@ filter: invert(1); } - .taxonomy-term:not(:hover):not(:focus) { - color: #e9ecef; - background: #403f4c; - } - - .taxonomy-count { - background-color: #000; - } - - .taxonomy-term:hover .taxonomy-count { - color: #bfc0b3 !important; - } - .vscomp-wrapper.multiple .vscomp-option.selected .checkbox-icon::after, .vscomp-wrapper .checkbox-icon.checked::after { border-color: deepskyblue; border-left-color: rgba(0, 0, 0, 0); @@ -92,23 +61,6 @@ .vscomp-dropbox-close-button { background-color: #333; } - - pre { - background-color: rgba(255, 255, 255, 0.1) !important; - color: inherit !important; - } - - .td-sidebar__toggle { - color: var(--bs-body-color); - } - - .td-sidebar-nav .dropdown a { - color: #b6afa8; - } - - nav.foldable-nav .ul-1 .with-child > label:before { - color: #b6afa8; - } } // } \ No newline at end of file diff --git a/website/go.mod b/website/go.mod new file mode 100644 index 0000000000..1ba111353b --- /dev/null +++ b/website/go.mod @@ -0,0 +1,9 @@ +module github.com/MajkiIT/polish-ads-filter + +go 1.23.1 + +require ( + github.com/FortAwesome/Font-Awesome v0.0.0-20240402185447-c0f460dca7f7 // indirect + github.com/google/docsy v0.10.0 // indirect + github.com/twbs/bootstrap v5.3.3+incompatible // indirect +) diff --git a/website/go.sum b/website/go.sum new file mode 100644 index 0000000000..6971937642 --- /dev/null +++ b/website/go.sum @@ -0,0 +1,6 @@ +github.com/FortAwesome/Font-Awesome v0.0.0-20240402185447-c0f460dca7f7 h1:2aWEKCRLqQ9nPyXaz4/IYtRrDr3PzEiX0DUSUr2/EDs= +github.com/FortAwesome/Font-Awesome v0.0.0-20240402185447-c0f460dca7f7/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo= +github.com/google/docsy v0.10.0 h1:6tMDacPwAyRWNCfvsn/9qGOZDQ8b0aRzjRZvnZPY5dg= +github.com/google/docsy v0.10.0/go.mod h1:c0nIAqmRTOuJ01F85U/wJPQtc3Zj9N58Kea9bOT2AJc= +github.com/twbs/bootstrap v5.3.3+incompatible h1:goFoqinzdHfkeegpFP7pvhbd0g+A3O2hbU3XCjuNrEQ= +github.com/twbs/bootstrap v5.3.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0= diff --git a/website/hugo.toml b/website/hugo.toml index b70484d5a6..888516fe90 100644 --- a/website/hugo.toml +++ b/website/hugo.toml @@ -3,8 +3,6 @@ title = "Polish filters for AdBlock, uBlock Origin & AdGuard" ignoreFiles = [ "table_notes.md" ] enableRobotsTXT = true publishDir = "../docs" -# Hugo allows theme composition (and inheritance). The precedence is from left to right. -theme = ["docsy"] # Will give values to .Lastmod etc. enableGitInfo = true @@ -135,6 +133,7 @@ sidebar_search_disable = false navbar_logo = false # Set to true to enablethe About link in the site footer footer_about_enable = true +showLightDarkModeMenu = true # Adds a H2 section titled "Feedback" to the bottom of each doc. The responses are sent to Google Analytics as events. # This feature depends on [services.googleAnalytics] and will be disabled if "services.googleAnalytics.id" is not set. @@ -196,6 +195,9 @@ no = 'Sorry to hear that. Please +