From a9aa4551223637a6c9b8ddac8d98fa887df67ba8 Mon Sep 17 00:00:00 2001 From: "Kyle P. Johnson" Date: Sat, 27 Sep 2025 12:01:01 -0700 Subject: [PATCH 1/6] add svg favicon --- _includes/head.html | 2 ++ favicon.ico | Bin 1449 -> 0 bytes favicon.svg | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+) delete mode 100755 favicon.ico create mode 100644 favicon.svg diff --git a/_includes/head.html b/_includes/head.html index 3257d1d..abbe68f 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -5,6 +5,8 @@ {% seo %} + + {% feed_meta %} diff --git a/favicon.ico b/favicon.ico deleted file mode 100755 index 94b4c272f77ec4265eb500a34ae32f37cb166756..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1449 zcmZ{ic}&x17{_0tI0uMq5zAF5hZoTH*F#EwAlizYL<+d?2q?--sAKAKJW2p!q`EZ z%5uH9PG$LSib#;Dz{>_^=D=RCVot=Y& zgC9P8$jZu6tJUw`y<1vZDk&-1xpSvRqY(%MR4R31Vq$i7R;$(8+uO5Pte&2p?Cfke zH@DW-)~Ttfq@*Mi3N^T3YJk#dq%9(dl#r1qH{CANTX~gCNMo#l_m% zIyE)5udgpUIyyHuHzg&7$K%oIbW2N1D=VulTef(5deUgL$jHdFw6yc*&o?$UzI^$T z$z+XJ%$TeE4vDe0*VHVR(30B9SPS%HrbU$B!RRPEMXZdseU4<8ZjSxw(*# z5SdIyp->zg9O~=qSq(G`V;RIUgZ#lMQ*` zuXqP9?gZ(lsDp%O{e4vLl2BZNV~nTS(vm60ljh9-isQ*WrD3K^8M~x@w($vP&J}#Y zG1G?Jb3cf#y!UfOXH#)WWqHS`AryS!wkm#k!^yx)ea~!*a#*1qe{^8`JkMyI!Hf`*5_VMgbh>&UgbAL}#2^JG5U@h&Da`QTQ3Q^nNp}Q zQ$A-Z7Uc^^7WlInDtlDu4-I6>x)`fRPOT>oG^;g_X1}+-&bsgK!gapu@D(c zfFd9=Od!H!k_QCA5cDd>sq{YrSz?@2l=}aI%jgC=_xSk4H)oCpFSYLug!LlK9C<17ZkljE)f! zr7RYP{SyUBnJ_^C!(j-T3<$c_-|?R@pK`*mL?{(Y6o5b_ZU#x22!mSV^AB@C8mEvL zk)CSjjR<1924P8MLPe@v2tJ((FHaEfy}@OF=EI6WC_o?+y}d|Of)^=me?%>UY+mED zU#b!Uh)ypo^?QMAao21`hBJUj8ZShykC!DV;uFPq5&t`>ATc2s|L@1(`64nzrNoj+ tvHV!7P(+L)3SvoQs)$b_kSP!a!XXMAaz51V?h{A`zzAUbU!(I*{0-hbP5=M^ diff --git a/favicon.svg b/favicon.svg new file mode 100644 index 0000000..b13a23a --- /dev/null +++ b/favicon.svg @@ -0,0 +1,42 @@ + + + + + + From 056723b4ea62837edbdc71c121d16e90a4b85b75 Mon Sep 17 00:00:00 2001 From: "Kyle P. Johnson" Date: Sat, 27 Sep 2025 13:10:36 -0700 Subject: [PATCH 2/6] update header and index --- corpora.md | 5 ----- docs.md | 4 ++-- docs_v10.md | 5 ----- index.md | 20 ++++++++++++++++++++ tutorials.md | 5 ----- tutorials_10.md | 5 ----- 6 files changed, 22 insertions(+), 22 deletions(-) delete mode 100644 corpora.md delete mode 100644 docs_v10.md delete mode 100644 tutorials.md delete mode 100644 tutorials_10.md diff --git a/corpora.md b/corpora.md deleted file mode 100644 index b1aaf48..0000000 --- a/corpora.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: Corpora -redirect_to: - - https://github.com/cltk ---- diff --git a/docs.md b/docs.md index 4373164..47d9e86 100644 --- a/docs.md +++ b/docs.md @@ -1,5 +1,5 @@ --- -title: Legacy Docs (v0.1.x) +title: Docs redirect_to: - - https://legacy.cltk.org + - https://docs.cltk.org --- diff --git a/docs_v10.md b/docs_v10.md deleted file mode 100644 index 47d9e86..0000000 --- a/docs_v10.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: Docs -redirect_to: - - https://docs.cltk.org ---- diff --git a/index.md b/index.md index 7f7bf1b..544b7a9 100644 --- a/index.md +++ b/index.md @@ -4,7 +4,27 @@ layout: default The Classical Language Toolkit (CLTK) is a Python library offering natural language processing (NLP) for the languages of pre–modern Eurasia. Pre-configured pipelines are available for 19 languages. +- Install: `pip install "cltk[openai,stanza,ollama]"` +- Code: +- Docs: + ## Maintainers * [Kyle P. Johnson](https://github.com/kylepjohnson) * [Clément Besnier](https://github.com/clemsciences) + +# Previous version + +Previous generations of the CLTK are not supported anymore, but for those needing to use or reference past versions, these are preserved. + +## Version `1.x` + +- Install: `pip install cltk==1.5.0` +- Code: +- Docs: + +## Version `0.x` + +- Install: `pip install cltk==0.1.121` +- Code: +- Docs: diff --git a/tutorials.md b/tutorials.md deleted file mode 100644 index d3b239e..0000000 --- a/tutorials.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: Legacy Tutorials (v0.1.x) -redirect_to: - - https://github.com/cltk/tutorials ---- diff --git a/tutorials_10.md b/tutorials_10.md deleted file mode 100644 index dab8744..0000000 --- a/tutorials_10.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: Tutorials -redirect_to: - - https://github.com/cltk/cltk/tree/master/notebooks ---- From 107a646479da0e2fd2195b9cce7f3fbc8f4b775a Mon Sep 17 00:00:00 2001 From: "Kyle P. Johnson" Date: Sat, 27 Sep 2025 13:26:54 -0700 Subject: [PATCH 3/6] correct code blocks --- _sass/_base.scss | 5 +++-- css/main.scss | 3 +++ index.md | 8 ++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/_sass/_base.scss b/_sass/_base.scss index d0cc6f9..6d6d359 100644 --- a/_sass/_base.scss +++ b/_sass/_base.scss @@ -131,7 +131,8 @@ code { font-size: 15px; border: 1px solid $grey-color-light; border-radius: 3px; - background-color: #eef; + background-color: $code-bg-color; // dark code background + color: $text-color; // readable on dark bg } code { @@ -140,7 +141,7 @@ code { pre { padding: 8px 12px; - overflow-x: scroll; + overflow-x: auto; > code { border: 0; diff --git a/css/main.scss b/css/main.scss index 55bb554..b3188b0 100755 --- a/css/main.scss +++ b/css/main.scss @@ -32,6 +32,9 @@ $content-width: 800px; $on-palm: 600px; $on-laptop: 800px; +// Code colors (dark mode) +$code-bg-color: hsl(225, 15%, 18%); + // Using media queries with like this: diff --git a/index.md b/index.md index 544b7a9..c665695 100644 --- a/index.md +++ b/index.md @@ -8,22 +8,22 @@ The Classical Language Toolkit (CLTK) is a Python library offering natural langu - Code: - Docs: -## Maintainers +# Maintainers * [Kyle P. Johnson](https://github.com/kylepjohnson) * [Clément Besnier](https://github.com/clemsciences) -# Previous version +# Previous versions Previous generations of the CLTK are not supported anymore, but for those needing to use or reference past versions, these are preserved. -## Version `1.x` +## Versions `1.x` - Install: `pip install cltk==1.5.0` - Code: - Docs: -## Version `0.x` +## Versions `0.x` - Install: `pip install cltk==0.1.121` - Code: From 83c6cfb4e7c08de80d6075c732c6f1b584d6c10a Mon Sep 17 00:00:00 2001 From: "Kyle P. Johnson" Date: Sat, 27 Sep 2025 13:39:07 -0700 Subject: [PATCH 4/6] ch background color of header to brown --- _sass/_layout.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/_sass/_layout.scss b/_sass/_layout.scss index 1fc8c22..bcc2e3f 100644 --- a/_sass/_layout.scss +++ b/_sass/_layout.scss @@ -5,6 +5,7 @@ border-top: 5px solid $brand-color; border-bottom: 1px solid $grey-color-light; min-height: 56px; + background-color: $brand-color; // Positioning context for the mobile navigation icon position: relative; From 386f3242e0c11ed0d1febfc1226f34a67f225af8 Mon Sep 17 00:00:00 2001 From: "Kyle P. Johnson" Date: Sat, 27 Sep 2025 13:41:05 -0700 Subject: [PATCH 5/6] switch fonts to Noto --- _includes/head.html | 4 ++++ _sass/_base.scss | 1 + css/main.scss | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/_includes/head.html b/_includes/head.html index abbe68f..722d32e 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -5,6 +5,10 @@ {% seo %} + + + + diff --git a/_sass/_base.scss b/_sass/_base.scss index 6d6d359..89c38ac 100644 --- a/_sass/_base.scss +++ b/_sass/_base.scss @@ -133,6 +133,7 @@ code { border-radius: 3px; background-color: $code-bg-color; // dark code background color: $text-color; // readable on dark bg + font-family: $code-font-family; } code { diff --git a/css/main.scss b/css/main.scss index b3188b0..e1a2b6d 100755 --- a/css/main.scss +++ b/css/main.scss @@ -10,7 +10,7 @@ img.cltk_logo { // Our variables -$base-font-family: Helvetica, Arial, sans-serif; +$base-font-family: 'Noto Serif', Georgia, serif; $base-font-size: 16px; $small-font-size: $base-font-size * 0.875; $base-line-height: 1.5; @@ -34,6 +34,7 @@ $on-laptop: 800px; // Code colors (dark mode) $code-bg-color: hsl(225, 15%, 18%); +$code-font-family: 'Noto Sans Mono', 'SFMono-Regular', Consolas, Menlo, monospace; From 7ec91e5542306a9f518420244718c9c844505696 Mon Sep 17 00:00:00 2001 From: "Kyle P. Johnson" Date: Sat, 27 Sep 2025 13:43:08 -0700 Subject: [PATCH 6/6] disable htmlproofer workflow --- .github/workflows/htmlproofer.yml | 32 ------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 .github/workflows/htmlproofer.yml diff --git a/.github/workflows/htmlproofer.yml b/.github/workflows/htmlproofer.yml deleted file mode 100644 index b64aa1a..0000000 --- a/.github/workflows/htmlproofer.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: HTMLProofer (links) - -on: - pull_request: - branches: [ "master" ] - -jobs: - test: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: '3.2' - bundler-cache: true - - - name: Build site - run: | - bundle install --jobs 4 --retry 3 - bundle exec jekyll build --trace - - - name: Run HTMLProofer - run: | - bundle exec htmlproofer ./_site \ - --disable-external \ - --enforce_https \ - --check_html \ - --check_favicon -