Comments (2)
Problem
This will cross the current implementation.
Current implementation
Generater generates header and footer parts around the rendered markuo. It defines the doctype and adds dynamic contents. Right now the only dynamic contents are the css and js files that can be given with the render options. But there are plans to generate a title for the card website from the title field in card.json.
Using templates
This would make the users more flexible regarding what they want to add to the page. It would give them the freedom to define their own doctype and meta data. Stylesheets and css could be linked directly which is no big difference to the current implementation (usability wise) but it would make templates mandatory.
Dynamically rendered stylesheets and stuff like title tag will be difficult though. We would still need to render them into the template which would require template tags. And the user shouldn't forget to put them into the template, otherwise the map will not be rendered correctly.
How to deal with CSS that is used to display the map?
I'm still not sure how to treat the css that is needed to display the map and parts of it are generated dynamically (the releases feature). Thus there can't be a map without this css. So the user shouldn't have freedom to just remove it.
But on the other hand we have to allow the user to modify the css.
Possible solution
Make the css for the map mandatory and render it directly into the map? But allow the users to overrule it with their own stylesheet. How does the order of the stylesheets need to be to allow this?
from usm.io.
Implemented with #30.
from usm.io.
Related Issues (19)
- Deep Links to cards HOT 8
- Acceptance criteria for Story Cards HOT 1
- Provide useful error message if usm.json or card.json is malformed
- Make renderer more forgiving
- Keep Releases visible when the map is scrollend horizontally
- Keep Activities and Steps visible when the map is scrollend vertically
- Allow aliases for keys in usm.json and card.json
- Add option to highlight specific cards in map by adding a pre-defined label HOT 1
- Add option to make cards more searchable by tagging them HOT 2
- Avoid confusion of cards: Do not allow the same title multiple times
- Show Card's title in the head of its website
- Navigation from Card package back to the Map HOT 2
- Improve test coverage / feature documentation
- Make structure of test suites more suitable for documentation
- Remove duplication in Usm and sub-classes
- Make map draggable for scrolling
- Add search feature HOT 1
- Does it work offline? 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 usm.io.