Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build

on:
pull_request:
branches: [master]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7

- uses: actions/setup-node@v6
with:
node-version: 24.x

- name: Install dependencies
run: npm ci

- name: Build production website
run: npm test
7 changes: 4 additions & 3 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches: [master]

permissions:
contents: write

jobs:
build:
runs-on: ${{ matrix.os }}
Expand All @@ -24,13 +27,11 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Delete temporary directories
run: npm run clean

- name: Build production website
run: npm run build

- name: Deploy to GitHub Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions assets/js/clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ var pre = document.getElementsByTagName('pre');
for (var i = 0; i < pre.length; ++ i)
{
var element = pre[i];
element.insertAdjacentHTML('afterbegin', '<button class="btn btn-copy"></button>');
element.insertAdjacentHTML('afterbegin', '<button type="button" class="btn btn-copy" aria-label="Copy code"></button>');
}

var clipboard = new Clipboard('.btn-copy', {

target: function(trigger) {
return trigger.nextElementSibling;
text: function(trigger) {
return trigger.parentElement.textContent;
},

});
Expand Down
6 changes: 3 additions & 3 deletions config/_default/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ outputs:
section:
- HTML
- RSS
- SITEMAP
- SECTION_SITEMAP

# add output format for section sitemap.xml
# Keep section sitemaps separate from Hugo's built-in SITEMAP format.
outputFormats:
SITEMAP:
SECTION_SITEMAP:
mediaType: application/xml
baseName: sitemap
isHTML: false
Expand Down
2 changes: 1 addition & 1 deletion config/_default/menus/menus.es-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ docs:
weight: 2720
identifier: karaoke-inline-fx
parent: tutorials
url: Karaoke_inline-fx
url: /docs/latest/Karaoke_inline-fx
- name: Tutorial de Furigana
weight: 2730
identifier: furigana-karaoke
Expand Down
5 changes: 1 addition & 4 deletions config/_default/params/params.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ footer: >-
# copyRight: Copyright (c) 2020-2021 Henk Verlinde

# Alert
alert: true
alertDismissable: true
alertText: >-
<a href="/blog/aegisub-3.4.0-released/">Aegisub 3.4.0 released!</a>
alert: false

# Edit Page
# repoHost [Github | Gitea | GitLab | Bitbucket | BitbucketServer ] is used for building the edit link based on git hoster
Expand Down
3 changes: 0 additions & 3 deletions config/_default/params/params.es-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ footer: >-

# Alert
alert: false
alertDismissable: true
alertText: >-
¡Échele vistazo a la nueva página de Aegisub!

# Edit Page
# repoHost [Github | Gitea | GitLab | Bitbucket | BitbucketServer ] is used for building the edit link based on git hoster
Expand Down
6 changes: 2 additions & 4 deletions config/_default/params/params.tr-tr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,8 @@ footer: >-
# copyRight: Copyright (c) 2020-2021 Henk Verlinde

# Alert
alert: true
alertDismissable: true
alertText: >-
<a href="/tr-tr/blog/aegisub-3.4.0-yayınlandı/">Aegisub 3.4.0 yayınlandı!</a>
alert: false

# Edit Page
# repoHost [Github | Gitea | GitLab | Bitbucket | BitbucketServer ] is used for building the edit link based on git hoster
repoHost: GitHub
Expand Down
5 changes: 1 addition & 4 deletions config/_default/params/params.zh-cn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@ footer: >-
# copyRight: Copyright (c) 2020-2021 Henk Verlinde

# Alert
alert: true
alertDismissable: true
alertText: >-
<a href="/zh-cn/blog/aegisub-3.4.0-发布了/">Aegisub 3.4.0 发布了!</a>
alert: false

# Edit Page
# repoHost [Github | Gitea | GitLab | Bitbucket | BitbucketServer ] is used for building the edit link based on git hoster
Expand Down
1 change: 1 addition & 0 deletions config/production/config.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
baseurl: https://aegisub.org/
canonifyURLs: false
4 changes: 0 additions & 4 deletions content/en/downloads/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ See the [changelog]({{< relref "changelog/" >}}{{< current-version-number >}}) f

{{< current-version >}}

## Upcoming Versions

Check CI build

## Dictionaries

To cut down on the download size, the Windows "Full" Install includes only a US English dictionary for the spell checker. All others must be downloaded separately:
Expand Down
4 changes: 0 additions & 4 deletions content/es-us/downloads/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ Vea [changelog]({{< relref path="changelog/" lang="en" >}}{{< current-version-nu

{{< current-version >}}

## Versiones pendientes

Revise la CI build

## Diccionarios

Para reducir el tamaño de descarga, la instalación "completa" Windows incluye solo
Expand Down
4 changes: 0 additions & 4 deletions content/tr-tr/downloads/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ layout: Downloads

{{< current-version >}}

## Yaklaşan Sürümler

CI derlemesini kontrol edin

## Sözlükler

Yükleme paketinin boyutunu küçültmek amacıyla, Windows yükleyicisinde yalnızca İngilizce (ABD) yazım denetimi sözlüğü yer almaktadır. Diğer diller için sözlükler ayrı olarak indirilebilir:
Expand Down
4 changes: 0 additions & 4 deletions content/zh-cn/downloads/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ layout: Downloads

{{< current-version >}}

## 即将推出的版本

Check CI build

## 词典

为了减小安装包的体积,Windows 安装程序中仅包含了用于拼写检查的英语(美国)词典,其它语种的词典则需单独下载:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
{{ range $i, $e := .Data.Pages -}}
{{ if ne .Params.sitemap_exclude true }}
{{ if and .Permalink (ne .Params.sitemap_exclude true) }}
<url>
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range .Translations }}
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range where .Translations "Permalink" "ne" "" }}
<xhtml:link
rel="alternate"
hreflang="{{ .Lang }}"
Expand All @@ -23,12 +23,12 @@
{{ end -}}
{{ range .Sections -}}
{{ range $i, $e := .Data.Pages -}}
{{ if ne .Params.sitemap_exclude true -}}
{{ if and .Permalink (ne .Params.sitemap_exclude true) -}}
<url>
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range .Translations }}
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range where .Translations "Permalink" "ne" "" }}
<xhtml:link
rel="alternate"
hreflang="{{ .Lang }}"
Expand Down
4 changes: 2 additions & 2 deletions layouts/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
{{ range .Data.Pages }}{{ if ne .Params.sitemap_exclude true }}
{{ range .Data.Pages }}{{ if and .Permalink (ne .Params.sitemap_exclude true) }}
<url>
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range .Translations }}
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range where .Translations "Permalink" "ne" "" }}
<xhtml:link
rel="alternate"
hreflang="{{ .Lang }}"
Expand Down
Loading