~tpeeters/ubuntu-ui-toolkit/tabs-autoactive

« back to all changes in this revision

Viewing changes to documentation/fix-markup.sh

  • Committer: Tarmac
  • Author(s): Christian Dywan
  • Date: 2013-06-27 12:54:26 UTC
  • mfrom: (507.2.23 uut.navi)
  • Revision ID: tarmac-20130627125426-4exjydcg6kkyo6jn
Implement bread crumbs in API docs. Fixes: https://bugs.launchpad.net/bugs/1168026.

Approved by PS Jenkins bot, David Planella.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# Copyright 2012 Canonical Ltd.
 
4
#
 
5
# This program is free software; you can redistribute it and/or modify
 
6
# it under the terms of the GNU Lesser General Public License as published by
 
7
# the Free Software Foundation; version 3.
 
8
#
 
9
# This program is distributed in the hope that it will be useful,
 
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
# GNU Lesser General Public License for more details.
 
13
 
14
# You should have received a copy of the GNU Lesser General Public License
 
15
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
16
#
 
17
 
 
18
sed -r -i 's@("main-content">)@\1<ul class="breadcrumb">@g' $1/html/*.html
 
19
sed -r -i 's@(<div class="toc">|<h1 class="title">)@</ul>\1@g' $1/html/*.html
 
20
sed -r -i 's@(</p>)<p/>@\1@g' $1/html/*.html
 
21
sed -r -i 's@(<a class="(next|prev)Page" href=".+">)(.+)(</a>)@<li>\1\3\4</li>@g' $1/html/*.html
 
22
sed -r -i 's@(href="qmlmodule-ubuntu-components0-ubuntu-components-0-1.html">Basic QML Types)@href="overview-ubuntu-sdk.html">Ubuntu User Interface Toolkit@g' $1/html/*.html