2.0.0 • Published 6 years ago

sissi-guides v2.0.0

Weekly downloads
18
License
GPL-3.0-or-later
Repository
github
Last release
6 years ago

sissi-guides – routing solution for sissi

Hi, it’s me again. sissi, your *simple static sites* generator.

If you want to turn your simple React app into a static site with a built-in CMS look no further! Or actually, do: the sissi repo is where you'll find all you need. See you there!

If you're a sissi fan and want to contribute – welcome! I'm glad you're here. I have to apologise, though. Please bear with me. I have but two parents and they are working hard on their sissi-to-do-lists. Contribution guidelines and thorough documentation of all packages are somewhere in there. Somewhere... For now, this will have to do:

What sissi-guides can do

sissi-guides is basically a wrapper for ReactRouter and provides a render() function and a SissiLink component.

render(Component, content)

The render() function is used in sissi projects and takes a React Component and a content object (the imported content.json). It then maps the pages and renders the given component for each page, enhanced with the following content props:

KeyTypeNotes
contentobjectthe full content object
globalobjectthe global content
pageobjectthe current page
pagesobject[]all pages
pathstringthe path of the current page
sectionsobject[]the sections of the current page

SissiLink

SissiLink is a wrapper for the ReactRouter Link component and supports all its main features.

It also adds the data-type="sissi-internal" attribute which is used by sissi-snaps to determine which pages to snapshot.

2.0.0

6 years ago

1.5.2

6 years ago

1.5.1

6 years ago

1.5.0

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago