frontend / toolbox-reader Goto Github PK
View Code? Open in Web Editor NEWToolbox Reader (styleguide renderer) —
Home Page: https://frontend.github.io/toolbox/
Toolbox Reader (styleguide renderer) —
Home Page: https://frontend.github.io/toolbox/
We should prefix Toolbox icons to avoid duplicated ids with the custom icons from the project.
Not like this:
<symbol id="icon-code" viewbox="0 0 114 102">
Like this:
<symbol id="tlbx-icon-code" viewbox="0 0 114 102">
toolbox-reader/src/components/Icon/Icons.js
Lines 5 to 39 in ed1eabf
If we define a wrapper
and/or background
setting in the component settings, it should be applied in the full render.
In the current state, it's not possible to avoid ALL the deployed styleguides to break after we update the reader: we are currently fetching a static build, like https://rawgit.com/frontend/toolbox-reader/master/build/static/js/main.f84f379e.js
.
Open to discussion @Yago @tonifisler
Tried to use the markdown syntax to rendre tables in documentation… And it doesn't work (yet)!
Tested:
Tables | Are | Cool |
---|---|---|
col 3 is | right-aligned | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
Hey mates I faced an issue when I want to override some css only for the styleguide.
My website use html { font-size: 48px; }
but I want to keep the default size on the Styleguide.
I try to use the assets/config/styleguide.scss
file with html { font-size: 16px !important; }
but it seems this file is not used anywhere.
How could I achieve my goal ?
When you mess up an @include
in Twig, Toolbox Reader becomes unresponsive, crashes the browser tab (latest Chrome) and eats up all the CPU power as it tries to indefinitely reload the components.
We changed the content of the window.sources
object and it can crash the app. It shouldn't crash and bring an info on how to upgrade to fix.
add some event.preventDefault();
to all previewed links.
Add the following Polyfill for String.includes
:
if ( !String.prototype.includes ) {
String.prototype.includes = function(search, start) {
'use strict';
if (typeof start !== 'number') {
start = 0;
}
if (start + search.length > this.length) {
return false;
} else {
return this.indexOf(search,start) !== -1;
}
};
}
Add a toolbar toggle to show/hide all code block
after following http://frontend.github.io/toolbox/updates.html on a fresh project, The banner stilly displays as follows:
It could be nice to be able to add some markup before or after the rendered styleguide.
For example, with my issue with the svg sprite, I could add
{{ source('build/icons/icons.svg') }}
just after the <body>
tag & it will be the same for the CMS implementation
Create a specific styleguide homepage template to provide something more sexy. The brand link in the toolbar (#12) should send to this page.
Could be userful / relevant to have a text specimen, a page that displays/recaps:
With some realistic content (so based on our client's content)
For offline purpose, add it in the package.json
with a *
version
Still bloody ugly, make it nice
f.ex: https://github.com/alexpate/awesome-design-systems
Hey guys,
Nice job about this amazing Styleguide.
I'm facing an issue, how could I add Typekit to my Styleguide and so use my fonts ?
Also, what about CDN or custom scripts?
Describe the bug
View full render of variants fail.
To Reproduce
Steps to reproduce the behavior:
Screenshot
Make the styleguide work without (and with) Bootstrap 4.
They actually remove the semantic meaning and have no point being around anything in the styleguide ;)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.