Coder Social home page Coder Social logo

mapzen / documentation Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 22.0 4.7 MB

Configuration files, tools, and content to build Mapzen's documentation

Home Page: https://mapzen.com/documentation

License: MIT License

Makefile 14.65% HTML 25.63% CSS 26.95% JavaScript 5.60% Shell 0.31% Python 26.87%

documentation's People

Contributors

binx avatar ecgreb avatar hanbyul-here avatar karimnaaji avatar louh avatar matteblair avatar meetar avatar migurski avatar mjcunningham avatar nvkelso avatar orangejulius avatar rfriberg avatar rmglennon avatar sarahsnow1 avatar sleepylemur avatar souperneon avatar

Stargazers

 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

Watchers

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

documentation's Issues

Figure out what the bottom "call to action" banner should say at launch

Currently, the doc pages* say: Get your API key for free access to Mapzen services. Sign in

@louh asked if it should be something else because the site doesn't yet know whether someone is signed in or not. So, “sign in” is actually misleading if a user is already signed in.

Should discuss further.

(* \documentation is a variant of this, and should have the same text)

Add vector tiles to doc site

Felt weird for vector tiles to be missing. The only reason it wasn't there before was because it lived in wikis and readmes (and pre-dated any other doc site work). I copied the content to a folder in mapzen-docs, and will figure out how to reduce duplicated content and get people to modify the content in there later.

I also need to trim down the index topic and make it into multiples, but I added the text so something would be there for it as a placeholder.

Lives in a folder in https://github.com/mapzen/mapzen-docs.

@lou - could you create the config and anything else needed for the build process? I'll go in and update the TOC entries and headings as soon as I have the topic list.

@souperneon - this fixes the five-block uneven issue, so we now have six on the main docs page.

Tagline from developers site is: Add open geospatial data to your applications with the vector tile map service.

8/14 To do list

  • Add headers / footers from main site (copy it over for now)
  • Match template to mapzen.com / refer to mockups
  • Scrollable side nav fixed on screen, should move out of the way when footer scrolls in
  • Improve API key sign up box
  • Documentation front page
  • Code box gradient - try to fix Chrome aliasing problem

Launch checklist for doc pages

  • Title text is present
  • Title text is consistent with product names (for example, Mapzen Turn-by-Turn, rather than Valhalla)
  • Page has links to the related project or data page
  • Page content and formatting is relatively consistent across products (for example, some have bullet lists, others are paragraphs, or have only a title)
  • Title banner across the top is present and consistent (for example, some have wide images, some have gray bar, some have subheadings underneath)
  • Search box is present and working
  • Breadcrumbs are present and working

Pull out Elevation Service to its own section

Currently, the elevation service docs live under Mapzen Turn-by-Turn, which makes it a bit buried.

Promoting it this way is more of implementation detail because the elevation code lives in Valhalla.

Pull it out into a separate elevation section.

Code highlighting is wrong.

  • Fails to correctly parse keywords, comments, etc consistently
  • Fails to identify the language even when it's specified
  • Check if hl_lines option works at all

Overlapping elements on this short page when scrolling

This short page (it's a stub, not done, of course) on Search has problems with scrolling.

To reproduce:

  1. Go to http://dev.mapzen.com/documentation/search/getting-started/003-reverse/
  2. Use your mouse or keyboard to scroll to the bottom of the page. Currently, this topic has only a heading and no text, so is really short.
  3. Scroll back up and notice the TOC and breadcrumbs overlap. The API Key bar may also overlap the TOC. If you scroll up and down enough, it may fix itself.

image

cc @louh @riordan

Rename Valhalla headings and URLs

I imagine this is done in the config file, but wasn't sure about all the consequences of renaming files, so will leave it to the expert...

Currently, the URL, breadcrumbs, and page heading say Valhalla, but we should rebrand this to cover the service name.

Mapzen Turn-by-Turn is pretty long, so I'm open to the URL or breadcrumb being routing or something more generic. (We should try Mapzen Turn-by-Turn first, though.)

Add ability to back to the top of the page

Some of these topics are pretty long, and if you scroll to the end of a md file, the TOC won't scroll to the next topic in the TOC. So, you need a way to get back to the top of the page.

We could consider adding a "Back to top" button or keep the breadcrumbs (maybe TOC, too?) displaying on the page as you scroll.

Scrolling to end of md file stops scrolling the TOC

If you scroll a page, the subheadings in a md file in the TOC scroll while the TOC frame stays static on the page. However, when you reach the end of a page, the content page and the TOC both move. Most would expect that TOC would scroll to the next topic (to the next md file).

(I know this is a known issue, but putting it in here so it's documented.)

Long TOC lists reach a point where they can't be scrolled

This really highlights that we need to rework the headings in the Tangram help, but it does still expose an issue where you can't scroll any further in its current state and entries get cut off.

To reproduce:

  1. Open the Tangram help
  2. Technical reference > draw section
  3. Start scrolling down. Parts of the draw subsection are cut off, as is the shaders section that is at the same level as draw.

image

Docs search preview cuts off words

Looks like it may show just a max number of characters. See if we can control this and be smarter about the text that gets displayed.

image

Add ability to distinguish contextual code from what the user needs to type in a code block

Sometimes, you may need to draw attention to a particular line in a code block and show it with different formatting. This came up with respect to tutorials where you include some lines in a code block for context but the user does not need to type all the code in the block.

Kicking around the idea of something like this to :

    <!-- insert this -->
    <link rel="stylesheet" href="leaflet.routing.valhalla.css"/>
    <!-- end insert this -->

This tutorial has an example: http://maptimeboston.github.io/leaflet-intro/ The code you actually type in for a given step is shown with a gray background.

image

Hide Pelias swagger docs content for now

I figure it might be as easy as commenting out these lines, but I'll let @louh do his magic so I don't break anything!

Let's hide until we can get them "refactored", as @riordan said.

    • API Reference:
    • 'Overview': 'swagger-docs/overview.md'
    • 'Paths': 'swagger-docs/paths.md'
    • 'Definitions': 'swagger-docs/definitions.md'

Display captions for images

In the Jekyll blog, we can use HTML tags to display a caption under an image and it looks great. In GitHub md and the docs site, the caption class looks the same as the other text, so maybe it just needs different styling?

<p class='caption'>This map shows the default Valhalla routing engine with simplified narration and driving instructions.</p>

image

Simplify API footer text so it's consistent across products

Right now, the footer says something like, "Sign up or sign in to get your free API key for unlimited access to Tangram.", although some products don't have a key directly.

How about just, "Get your free API key for unlimited access to Mapzen services."? That makes it work on every page as a generic footer.


Side note, I'm not really keen on the "sign up or sign in" distinction. Sites typically say, "Sign in" and then have a link to create an account if you don't already have one.

Adobe website header:
image

Click sign in to get this page:
image

Type edits

  • Change project names to Playfair (match the h5 style on /projects)
  • Change project name in title bar to same style as above

Title banner on project pages

Use background color #385d5c and text color #fff and add in the some description text under the body from /documentation

What should we do with the Tangram headings and TOC entries?

Currently, the Tangram help has only two top-level entries in the TOC because everything is nested under "concept overviews" and "technical reference". Most of the titles are repeated between these headings (Filters in the overview, and filters in the API section), so it's not as easy as removing the top-level nodes. It would also get really redundant to put a word like "overview" in the first batch of headings or "API/parameter" in the second batch to distinguish them.

We also need to do need to do some work with the H2s and H3s in these topics to reduce the TOC subentries.

For launch, we should do the minimum needed and can go back and work with the Tangram team to clean up the subentries. Ideas on what to do?

Add vertical stripe

If you tag some text in a table with backticks, the gray around the text kind of gives a vertical zigzag effect because of the table row shading. Maybe not highlight code text in tables?

image

Links not working in newly added content

All the md links are broken on the docs site for new content I added yesterday. They work in GitHub, but are not being generated properly with the folder path in mkdocs. Right now, they are missing the hierarchy of documentation/search/topicname and point to documentation/topicname.

For examples, see the Metro Extracts and Search home pages.

Ordering of projects across the site

Make the order consistent on /projects, /data, /documentation, /developers and the footer

Projects
Tangram
Mapzen Search
Mapzen Turn-by-Turn
Vector Tile Service

Data
Metro Extracts
Borders
Transitland
Who's On First

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.