Giter Site home page Giter Site logo

docs's Introduction

WebPlatform Docs

This repository should be the replication of WebPlatform.org content and user contribution as of 2015-09-04

Goals

  1. Allow us to save on computing resources by serving static files
  2. Use tools web developer already uses, ease contribution

To read more about the conversion process we've been through, you can refer How was it done section below.

Purpose, how to setup and use

This repository contains raw documentation files in Markdown format that is used on WebPlatform Docs.

Content is separated in multiple repositories, this one has main docs pages.

Planning, and discussions ("other content") are migrated into separate repositories:

To get the docs pages, refer to the following git repositories.

Submodule Note
(this repo) The main docs pages
webplatform/docs-meta Archived content that needed to be moved during mass imports. We kept them there to cherry-pick and merge into the main content section. Was accessible under the URL docs.webplatform.org/wiki/Meta:...
webplatform/docs-wpd Community and notes section. Was accessible under the URL docs.webplatform.org/wiki/WPD:...

To publish the site, we use a static site generator, see webplatform/generator-docs repository

Expected steps

See webplatform/generator-docs

How was it done?

To learn how the conversion was done, take a look at the mediawiki-conversion utility and the webplatform/content-converter library.

docs's People

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  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docs's Issues

Review pages that had issue during import

The following pages returned errors during attempt to convert from MediaWiki to HTML.

Pages to review

  • html/attributes/BGCOLOR_html_attribute/index.md
  • its/attributes/its-storage-size/index.md
  • css/properties/text-emphasis/index.md
  • Beginners/the_beginning/index.md
  • apis/webrtc/RTCPeerConnection/open/index.md
  • apis/webaudio/AudioBufferSourceNode/playbackState/index.md
  • apis/webaudio/AudioContext/sampleRate/index.md
  • concepts/an_introduction_to_digital_design/index.md
  • svg/objects/index.md
  • tutorials/Scripting_SVG/index.md
  • apis/xhr/methods/send_XDomainRequest/index.md
  • apis/xhr/methods/open_XDomainRequest/index.md
  • svg/properties/ry_SVGRectElement/index.md
  • svg/properties/rx_SVGRectElement/index.md
  • svg/properties/type_SVGFETurbulenceElement/index.md
  • svg/properties/type_SVGFEColorMatrixElement/index.md
  • svg/properties/type_SVGComponentTransferFunctionElement/index.md
  • svg/properties/type_SVGTransform/index.md
  • svg/properties/type_SVGStyleElement/index.md
  • svg/properties/type_SVGScriptElement/index.md
  • svg/properties/r_SVGRadialGradientElement/index.md
  • svg/properties/cy_SVGRadialGradientElement/index.md
  • svg/properties/cx_SVGRadialGradientElement/index.md
  • html/attributes/version_dom/version/index.md
  • html/attributes/name_param_element/index.md
  • html/attributes/type_param_element/index.md
  • html/attributes/value_param_element/index.md
  • html/attributes/label_optGroup/index.md
  • html/attributes/name_frames/index.md
  • html/attributes/name_meta_object/index.md
  • html/attributes/name_window/index.md
  • html/attributes/size_control/index.md
  • html/attributes/size_hr/index.md
  • html/attributes/src_input_img/index.md
  • html/attributes/src_iframe_embed_xml/index.md
  • html/attributes/src_script/index.md
  • html/attributes/start_ol/index.md
  • html/attributes/type_type_a_link_embed/index.md
  • html/attributes/type_select_element/index.md
  • html/attributes/type_textarea_element/index.md
  • html/elements/ul/index.md
  • html/attributes/value_li_element/index.md
  • html/attributes/value_select_option_element/index.md
  • html/attributes/value_input_elements/index.md
  • html/attributes/value_textarea_element/index.md
  • svg/properties/baseVal_SVGAnimatedInteger/index.md
  • svg/properties/animVal_SVGAnimatedLengthList/index.md
  • svg/properties/baseVal_SVGAnimatedLengthList/index.md
  • svg/properties/animVal_SVGAnimatedLength/index.md
  • svg/properties/baseVal_SVGAnimatedLength/index.md
  • svg/properties/animVal_SVGAnimatedNumberList/index.md
  • svg/properties/baseVal_SVGAnimatedNumberList/index.md
  • svg/properties/animVal_SVGAnimatedNumber/index.md
  • svg/properties/baseVal_SVGAnimatedNumber/index.md
  • svg/properties/animVal_SVGAnimatedPreserveAspectRatio/index.md
  • svg/properties/baseVal_SVGAnimatedPreserveAspectRatio/index.md
  • svg/properties/animVal_SVGAnimatedRect/index.md
  • svg/properties/baseVal_SVGAnimatedRect/index.md

Potential potential false positives

  • svg/properties/rootElement/index.md
  • svg/properties/length/index.md
  • svg/properties/animatedPoints/index.md
  • svg/properties/normalizedPathSegList/index.md
  • svg/properties/animatedNormalizedPathSegList/index.md
  • apis/indexeddb/IDBCursor/advance/index.md
  • html/elements/xmp/index.md
  • html/elements/var/index.md
  • dom/Document/vlinkColor/index.md
  • dom/Document/write/index.md

Prior to shut down MediaWiki, ensure all "... Further results" are fully imported in static site

Let’s make HTML some MediaWiki ASK query results.

In order to stop relying on MediaWiki, we got to make sure all contents that were linked automatically through Semantic MediaWiki is kept as static HTML.

In some views, you might see a link that links to "... further results" like below;

semantic_mediawiki_further_results

The issue is that since we won’t have MediaWiki anymore, those links will be broken.

See also: webplatform/mediawiki-conversion#9.

How to do

We hae no choice to do this manually on any page that has SemanticMediaWiki or subpages wiki macros because we’re getting out of MediaWiki and we will lose the work made to make those dynamic lists.

To keep the list content for posterity, we gotta find pages that makes reference to them (e.g. grep -rli 'subpages' content/WPD/) and attempt to rework the wiki document to make the HTML give us the full listing output.

Otherwise we’ll lose that data

  1. HTML file has a table with classname "wikitable smwtable", or just search entries that has "further results" mentioned.

    grep -rli 'further results' content
    
  2. Get Full view (if possible) by using MediaWiki ASK query helper

  3. Once we see no "more..." link at the bottom of the view. Click on "show embed code" so that you can copy query code.

{{#ask:[[Path::~*apis/*]] [[Content quality flag::~Examples Needed]]
|?Path
|?Summary
|?Modification date
|format=broadtable
|limit=500
|offset=15
|sort=Modification date
|order=desc
|headers=plain
|mainlabel=-
|searchlabel='''More results'''
|default={{{default_text}}}
}}

Converted:

Pages to review

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.