Comments (9)
Hi, glad this project is useful to you.
I probably need to make it clearer in the README that the tradegecko theme is an alternative to the default Slate theme (or CSS) and not a syntax highlighting theme.
From memory, all that is required is to include the tradegecko.min.css file after the slate.css on your site.
And yes, it is related to the sites you mention, though it may not necessarily be as up-to-date as those.
from shins.
https://github.com/Mermade/shins/blob/master/pub/css/tradegecko.min.css can be included with the --css option. (Edited to correct option name.)
from shins.
Ah thank you!
Was already using the customcss option as well, will see if i can get that included now π
EDIT: I do agree though that the documentation should just include 2-3 words about how to enable it.
Their newest theme looks pretty good, though they do so much with the formatting etc, which i rather live without.
from shins.
README.md
updated, thanks this will probably help others too.
from shins.
hey all - just to be clear, how do you get the tradegecko theme to work? Something like the following?
node shins.js --customcss pub/css/tradegecko.min.css -o index.html
node shins.js --customcss -o index.html
I'm probably doing something as it doesn't seem to work.
from shins.
Due to the history of when the options were added, the naming is a little misleading.
--customcss
includes the pub/css/screen_overrides.css
and pub/css/print_overrides.css
files.
--css {css-file}
is used to specify additional CSS files to include.
So node shins --css pub/css/tradegecko.min.css
should work (just tested here).
As well as this issue being wrong (multiple times!) the README
was also incorrect, so that's been fixed. Thank you for pointing it out!
from shins.
Thanks, Mike. It looks great now.
I did notice that TOC doesn't have the same style as the tradegecko api - is this just a consequence of using an outdated file or is the TOC not included?
from shins.
It's possible, as you say, because the Tradegecko theme file I added pre-dates / doesn't include changes necessary for the newer Slate 2.x ToC. Do you see any CSS issues in the browser console?
from shins.
Thanks for getting back.
I do see a few issues in the console but I don't think they'd cause this issue:
GET file://fonts.googleapis.com/css?family=Open+Sans:400,600,700 net::ERR_FILE_NOT_FOUND
GET file:///Users//shins/pub/fonts/slate.woff2?-syv14m net::ERR_FILE_NOT_FOUND
GET file:///Users//shins/pub/fonts/slate.ttf?-syv14m net::ERR_FILE_NOT_FOUND
from shins.
Related Issues (20)
- Missing include for minify flag HOT 3
- Latest release is still marked as 2.1.1-0 instead of 2.6 HOT 1
- Unintended behaviour when <'EOF' is included in a code snippet HOT 2
- Support (more) complex "includes" structure HOT 1
- Canβt set a local custom logo HOT 2
- Unable to create "spacers" in TOC with blank h1s like with Slate HOT 5
- Changes to nested includes are not picked up HOT 1
- New --root option not supported when building styles HOT 1
- Incomplete build with --minify HOT 1
- layout option does not resolve to absolute path HOT 6
- Wrong css includes HOT 2
- TOC deeper nesting not working
- Feature request: Arapaho cli options for logo/customcss HOT 1
- Additional Javascript (e.g. clipboard support) buttons etc HOT 5
- html tags in code samples are not escaped HOT 2
- Embedding partials into Markdown files HOT 3
- Conditional code annotation HOT 2
- Code blocks without a language tag render in languages panel HOT 5
- Using the same link for several menu items HOT 6
- Problems with --inline and the logo of the page. 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 shins.