Giter VIP home page Giter VIP logo

Comments (8)

azu avatar azu commented on August 26, 2024 1

Pagefind is suitable for new search engine.

from honkit.

azu avatar azu commented on August 26, 2024
  • OGP Support
  • GitHub page link #116

from honkit.

symbiogenesis avatar symbiogenesis commented on August 26, 2024

Should use the prefers-color-scheme media query to set the default color scheme via CSS

from honkit.

azu avatar azu commented on August 26, 2024

We have added @honkit/honkit-plugin-theme as experimental.
https://honkit.netlify.app/ it-self use this theme.

This is WIP.
This PR has removed all but what is necessary.
As a results,

  • JS: 50kb + 50kb → 1.6kb
  • CSS: 10kb + 2kb → 4kb+2kb

TODO

  • Search Plugin
  • Use CSS Variables
    • Probably, drop to use less
  • Think plugin systems
    • Import maps will be suitable to this situation, I think
  • Support Async Plugin Loading
  • Island Architecture guideline

from honkit.

jeffrey-ng avatar jeffrey-ng commented on August 26, 2024

Was wondering if you had some pointers on how one could test this theme out on their own honkit setup?

I'm looking to removing the jquery dependency as I'm running into some CSP issues with the default theme.

from honkit.

azu avatar azu commented on August 26, 2024

@jeffrey-ng Please note that this is still experimental and therefore quite unstable.
(Probably Breaking changes are also made in the PATCH version.)

  1. install theme
npm @honkit/honkit-plugin-theme -D
  1. change plugins in book.json
plugins: ["-theme-default", "-search", "-lunr", "-fontsettings", "@honkit/honkit-plugin-theme"]
  • honkit/book.js

    Line 11 in d058ddf

    plugins: ["-theme-default", "-search", "-lunr", "-fontsettings", "@honkit/honkit-plugin-theme"]

from honkit.

jeffrey-ng avatar jeffrey-ng commented on August 26, 2024

Please note that this is still experimental and therefore quite unstable.

100% understand.

Assuming this should be npm install @honkit/honkit-plugin-theme -D?

Had tried this originally but doesn't look like the package is published publicly.

✗ npm install @hontkit/hontkit-plugin-theme -D
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@hontkit%2fhontkit-plugin-theme - Not found
npm ERR! 404
npm ERR! 404  '@hontkit/hontkit-plugin-theme@*' is not in this registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

from honkit.

azu avatar azu commented on August 26, 2024

Ah, I forgot to publish to npm.

I've published @honkit/honkit-plugin-theme to npm.

https://github.com/honkit/honkit/releases/tag/v5.1.0

from honkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.