webplatform / mediawiki-conversion

Convert MediaWiki XML backup into structured raw text file tree
https://github.com/webplatform/docs
15 stars 4 forks source link

Handle file upload references (e.g. File:Foo.png) in the content to refer stored on a S3/Swift raw file. #5

Closed renoirb closed 9 years ago

renoirb commented 9 years ago

MediaWiki handles ways to store file uploads into various backends. In a MediaWiki page we would use a syntax to have the file displayed such as [[File:My_Image_name.png]] which then gets handled by MediaWiki and generates tag for us.

On a static site, we won’t have this for us. We’ll have to have our static site generator to allow us to keep similar reference format without a need to migrate content.

Requirements

Ideal syntax could be something that we can handle file reference from either the static site generator or an Asynchronous client-side JavaScript handler.

Syntax proposal

<img data-remote="My_Image_name.png" />
renoirb commented 9 years ago

No need to do, we get all images correctly through MediaWiki API parser output.