iTowns / itowns.github.io

iTowns public web site
Other
3 stars 7 forks source link

Autogenerate itowns example pages #11

Closed autra closed 5 years ago

autra commented 7 years ago

This PR auto-generates a page containing examples from /itowns/examples.

Context and Motivation

It will be quickly cumbersome to maintain our /itowns/examples/index.html.

Moreover, we want this page to integrate into our jekyll template. Therefore auto-generating it from the files in this folders might save us some pain.

autra commented 7 years ago

Once this PR is merged, we can delete examples/index.html in https://github.com/iTowns/itowns (or keep it, if we think it is useful to have itowns side). At the moment, the style is copied from this file. We still need to make it responsive.

autra commented 7 years ago

@iTowns/reviewers please r?

autra commented 7 years ago

@iTowns/reviewers updated.

The only downside of this is that we loose the "WFS data with" from the actual examples page. Any suggestions for having it back? A metadata file on itowns side maybe?

autra commented 7 years ago

The only downside of this is that we loose the "WFS data with" from the actual examples page. Any suggestions for having it back? A metadata file on itowns side maybe?

Forget this, actually we have it.

autra commented 7 years ago

@iTowns/reviewers updated: just added a H3 around links.

So at the moment, the title is the filename stripped of its extension. In the future, we need to find a way to give nicer title. Maybe just replace _ in filenames with spaces could cheaply do the trick?

autra commented 6 years ago

@iTowns/reviewers rebased. Are we still insterested in auto-generation of the example page ?