Giter Club home page Giter Club logo

Comments (12)

mrpotes avatar mrpotes commented on May 17, 2024

I'd be happy to implement this if desired. I'd probably use KnockoutJS for controlling the content, and require to load the individual page content.

from gitbook.

nijikokun avatar nijikokun commented on May 17, 2024

This question was already raised in #57 and I've made a theme that supports it, will be releasing it tonight :)

from gitbook.

mrpotes avatar mrpotes commented on May 17, 2024

Cool :-)

One of the niggles that e was bothering me was the progress bar animation -
died your theme fix that too?
On 9 Apr 2014 19:34, "Nijiko Yonskai" [email protected] wrote:

This question was already raised in #57https://github.com/GitbookIO/gitbook/issues/57and I've made a theme that supports it, will be releasing it tonight :)

Reply to this email directly or view it on GitHubhttps://github.com//issues/66#issuecomment-40000238
.

from gitbook.

nijikokun avatar nijikokun commented on May 17, 2024

In my theme, I've changed the progress bar to not show the chapters (completely optional, and easy to change through the variables.less) and the progress animation works.

I need to create a gruntfile for my theme.

As of right now, when a new user comes it's very unclear that you must first build the theme and then reference it when you build/serve.

from gitbook.

nijikokun avatar nijikokun commented on May 17, 2024

mrpotes I've released it here: https://github.com/Nijikokun/clarity

I have to fix the routing, push state doesn't seem to reload the page, but everything else works as intended.

from gitbook.

AaronO avatar AaronO commented on May 17, 2024

👍 Looks nice !

I think we should move towards themes being npm-installable. And have a convention for package names such as : gitbook-theme-clarity. What do you think ?

from gitbook.

AaronO avatar AaronO commented on May 17, 2024

About static pages vs dynamic ajax loading, @SamyPesse and I made the concious decision to keep it simple to start with, so that if fallbacks nicely and works pretty much everywhere.

@nijikokun Since you're the first external person to write a theme (that we know of ), it would be great to have your feedback on what you think could be made easier and improved.

gitbook (and thus it's theme system) is barely a week old, so it's a young project that needs to be shaped by feedback from users like yourself.

Thanks for the good work !

from gitbook.

nijikokun avatar nijikokun commented on May 17, 2024

The most complex parts:

  1. Building, and compiling the theme. Maybe it should be gitbook that does this, not the end-user.
  2. Not knowing whether gitbook is actually using the theme until you view the site.
  3. If we setup a naming convention gitbook can use that to load the npm and build it. I've setup clarity to use npm install && npm build to build the assets folder.

The rest of the ideas and things that could be made easier are actually just a theming thing, it's like wordpress themes, gitbook essentially just compiles markdown into the theme, and the theme handles the rest (such as routing, and functionality)

So plugin systems, and all of that would be on themes it seems (it all comes down to upkeep).

I agree on themes being on NPM. I can publish clarity now.

from gitbook.

AaronO avatar AaronO commented on May 17, 2024

I agree entirely with the above.

BTW, @SamyPesse and I really like your clarity theme and were wondering if you would be interested in it becoming the default gitbook theme ?

from gitbook.

nijikokun avatar nijikokun commented on May 17, 2024

Thank you :) wow! that would be awesome!

(Fixes are finished)

from gitbook.

SamyPesse avatar SamyPesse commented on May 17, 2024

@nijikokun please make a PR when you're ready (just the theme changement, not the single page architecture), and add your name to the AUTHORS.md file ;)

from gitbook.

SamyPesse avatar SamyPesse commented on May 17, 2024

I just merged @nijikokun clarity theme into gitbook and improve its stability.

So GitBook now uses ajax refresh.

from gitbook.

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.