GithubHelp home page GithubHelp logo

nrkno / core-docs Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 2.0 962 KB

Write documentation in markdown and render it beautifully

Home Page: https://static.nrk.no/core-docs/latest/

License: MIT License

HTML 2.57% JavaScript 49.88% SCSS 47.55%
documentation markdown

core-docs's People

Contributors

andersli avatar dependabot-preview[bot] avatar dependabot[bot] avatar eirikbacker avatar htor avatar klizter avatar laat avatar skjalgepalg avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

core-docs's Issues

Open source

wee - people want to borrow our toys :)

  1. Remove NRK-logo from build
  2. Make repo public

support ie9+

because... it's convenient to test code + write docs at in the same document.

some issues in ie9:

Link to example repos

Link to one or two real core-docs in the wild in main readme.
TODO when core-css etc uses new core-docs

breaks in ie11

core-docs doesn't work anymore in ie11, there's a cryptic error in the js console, possibly from one of the libs used.

Improve title-text in docs

When navigating away from the homepage in the docs, Origo is replaced with the title of the new page. I suggest keeping both, to make it easier to identify tabs in the browser-window.

Example:
Elements – Origo instead of Elements.

better error messages from buble/babel

if possible, we should produce better error messages on transpiling markdown demo js.
now this js error in markdown

<script>origoAuthority('#demo-authority', { type: 'channel', foo: ... })</script>

produces this error console:

SyntaxError: Unexpected token (1:58) buble.es.js:2751:12
    raise buble.es.js:2751
    unexpected buble.es.js:670
    parseExprAtom buble.es.js:2211
    value buble.es.js:6086
    parseExprAtom buble.es.js:5959
    parseExprSubscripts buble.es.js:2062
    parseMaybeUnary buble.es.js:2039
    parseExprOps buble.es.js:1981
    parseMaybeConditional buble.es.js:1964
    parseMaybeAssign buble.es.js:1939
    parsePropertyValue buble.es.js:2458
    parseProperty buble.es.js:2449
    parseObj buble.es.js:2384
    parseExprAtom buble.es.js:2194
    value buble.es.js:6086
    parseExprAtom buble.es.js:5959
    parseExprSubscripts buble.es.js:2062
    parseMaybeUnary buble.es.js:2039
    parseExprOps buble.es.js:1981
    parseMaybeConditional buble.es.js:1964
    parseMaybeAssign buble.es.js:1939
    parseExprList buble.es.js:2657
    parseSubscripts buble.es.js:2090
    parseExprSubscripts buble.es.js:2065
    parseMaybeUnary buble.es.js:2039
    parseExprOps buble.es.js:1981
    parseMaybeConditional buble.es.js:1964
    parseMaybeAssign buble.es.js:1939
    parseExpression buble.es.js:1904
    parseStatement buble.es.js:838
    value buble.es.js:6074
    parseTopLevel buble.es.js:724
    parse buble.es.js:545
    parse buble.es.js:562
    vo buble.es.js:10226
    <anonymous> index.js:82
    r index.js:104

Suggestion: Add option to define brand and product logo

As subject suggests, should we implement a feature to add a brand logo (like NRK) as well as a sub-brand (e.g. the explicit product you're documenting)?

  • Write to index.html and have core-docs include in page layout if present and possible option specified
  • Allow for theme-specific markup

Ensure unique title links

Having multiple headings with the same text, i.e:

#Component 1
## Installation
#Component 2
## Installation

results in the same hash for #installation. These should either be prefixed with component-2 (if preceding heading exists) or unique id if no "parent heading" is found

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.