[md-importer] Figure out how to display images

Bug #1511677 reported by Daniel Holbach on 2015-10-30
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Developer Portal
Medium
Daniel Holbach

Bug Description

Figure out how to display images in imported markdown docs. /snappy/build-apps should have one.

Related branches

summary: - Figure out how to display images in imported markdown docs
+ [md-importer] Figure out how to display images
Changed in developer-ubuntu-com:
importance: Undecided → Medium
status: New → Triaged
tags: added: site-dev
Daniel Holbach (dholbach) wrote :

David: do you have an idea how we could do this?

Daniel Holbach (dholbach) wrote :

I can see two options:

1) ship the image in trunk, make it show up in markdown too
    + produced markdown docs look the same as ours
    + less monkeying around with the produced HMTL
    - needs upload of images to swift
    - needs us to figure out how make it look well with markdown

2) have a custom solution, like setting a "hero picture" for a given article
    + no monkeying around with markdown
    - needs picture upload capability
    - needs new table for ImportedMarkdownArticle (if we decide to go with the idea of overriding URLs for imported articles we need this anyway)

Anything I've missed or forgotten?

Daniel Holbach (dholbach) wrote :

Both would require us to keep track of the image, so remove it if it gets dropped from the article or the article gets deleted.

Daniel Holbach (dholbach) wrote :

Option 3:
<davidcalle> dholbach, I would say: hosting images in the docs dir in snapcraft, and using the proper markdown extension (there is one for images). To have something that would work both and github and d.u.c, with images hosted on github
<dholbach> so we'd hotlink to the image on github? or did I misunderstand
<davidcalle> dholbach, yes we would

Changed in developer-ubuntu-com:
status: Triaged → In Progress
assignee: nobody → Daniel Holbach (dholbach)
Changed in developer-ubuntu-com:
status: In Progress → Fix Committed
Changed in developer-ubuntu-com:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers