Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No markup in shortdesc #1952

Merged
merged 2 commits into from Apr 4, 2014
Merged

No markup in shortdesc #1952

merged 2 commits into from Apr 4, 2014

Conversation

tschaub
Copy link
Member

@tschaub tschaub commented Apr 4, 2014

The example parser and index template don't handle markup in the shortdesc element. Use the docs element instead.

Now that we have Node as a dependency, I'd like to propose that we move our examples into templates with YAML front matter (for things like tags, classes used, description) and have a Node based task to build the examples. I'd like to unify how we build the examples and rest of the website. And I also think it makes sense to have these tasks (and the documentation building) run on Node - since this is a JavaScript project, I think we should all be able to contribute to JavaScript build tools. I know this is a different subject than the ticket at hand, but all the copy/paste in the examples is getting to me.

@tschaub
Copy link
Member Author

tschaub commented Apr 4, 2014

See http://ol3js.org/en/master/examples/?q=draw for an example of how markup in shortdesc is currently rendered. The tag name in this case is also used as a search term (e.g. http://ol3js.org/en/master/examples/?q=code).

The example parser and index template don't handle markup in the shortdesc element.  Use the docs element instead.
This strips markup from elements with id attributes that we care about: title, shortdesc, tags.  This will only work for people who use `npm install && npm start` to browse examples.  The other example parser doesn't strip this markup, so it should still not be used in these elements.
@ahocevar
Copy link
Member

ahocevar commented Apr 4, 2014

Looks good. Please merge.

tschaub added a commit that referenced this pull request Apr 4, 2014
@tschaub tschaub merged commit 732ec7c into openlayers:master Apr 4, 2014
@tschaub tschaub deleted the shortdesc branch April 4, 2014 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants