Comments (12)
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.
This question was already raised in #57 and I've made a theme that supports it, will be releasing it tonight :)
from gitbook.
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.
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.
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.
👍 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.
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.
The most complex parts:
- Building, and compiling the theme. Maybe it should be gitbook that does this, not the end-user.
- Not knowing whether gitbook is actually using the theme until you view the site.
- 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.
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.
Thank you :) wow! that would be awesome!
(Fixes are finished)
from gitbook.
@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.
I just merged @nijikokun clarity theme into gitbook and improve its stability.
So GitBook now uses ajax refresh.
from gitbook.
Related Issues (20)
- Search should list all instances with context, not just pages where term occurs
- Error:EPERM
- Support New Embeds in PDF export
- Gitbook directory folding
- Garbled messages appeared when changing url path of page using Chinese input method
- Publish new version to NPM? HOT 2
- can not login with github account
- Gitbook not getting updates from GitHub
- Gitbook loads the wrong page every time when I open it.
- 'Copy' on Request / Response examples not updating clipboard
- Add hoverable anchor feature for paths on OpenAPI spec renderings
- User selection on payload properties in OpenAPI spec HOT 1
- Unable to use `target="_blank"` for anchor tags HOT 2
- Feature request - global tabs settings
- "/" meun don't support chinese.
- can't search words in tabs/table/cards
- support more markdown syntaxs
- "[XXX](/)" refers to a wired location other than the root directory HOT 1
- cover.jpg does not show on the gitbook and exported pdf file HOT 1
- Integration button elements do not work. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitbook.