GithubHelp home page GithubHelp logo

float-mode / strapdown Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smzg/strapdown

0.0 2.0 0.0 626 KB

Bootstrap+Markdown+Navigation

Home Page: http://smzg.github.io/strapdown/example

CSS 57.10% HTML 42.90%

strapdown's Introduction

Strapdown+Navigation

Strapdown creates Markdown documents using Bootstrap/Bootswatch themes. No server-side compilation is required.

For an example see http://strapdownjs.com

This project modifies Strapdown and adds a top Navigation menu to the documents.

For an example see Strapdown+Navigation

One can use this example as a template.
Parameters should be defined in a meta tag with id='page-params'. Possible parameters are

  • theme - Name of a bootswatch theme, default is spacelab
  • title - Title written in the navbar. If empty, the title of html document is used
  • menu - menu string of the form 'Name 1, Link 1, Name 2, Link 2, ...'
  • active - number of the active menu item
  • root - path added to the links in the menu string, default is "".

Markdown text should be inserted inside xmp or textarea tags.
Several such tags can be used (only xmp or only textarea).
They can have attribute cols (1 to 12, default is 12) for a narrow text column.

###Example

<!DOCTYPE html>
<html> 
<head>
<title>Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta id='page-params'
	theme='spacelab'
	title='Strapdown+Navigation'
	menu='Home,index.html,Menu 1,menu1.html,Menu 2,menu2.html,Menu 3,menu3.html' 
	active='1'
	root=''>
</head>

<body style="display:none">

<xmp>
#Home

* Markdown text
</xmp>

<script src="config/strapdown.js"></script>
</body>
</html>

###Changes

strapdown's People

Contributors

arturadib avatar atifaziz avatar lazee avatar smzg avatar

Watchers

 avatar  avatar

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.