mirror of
https://github.com/nextcloud/documentation.git
synced 2026-03-26 13:28:45 +07:00
- Change all `.. figure::` elements to `.. image::` - Add empty `:alt:` so it is clear to screen readers that the images are decorative and don’t duplicate content - Update styleguide with that info Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
This commit is contained in:
@@ -104,7 +104,7 @@ foreach($icons as $class => $icon) {
|
||||
$outPath = $destinationDirectory . 'img/' . $path . '.png';
|
||||
|
||||
// filling the rst file
|
||||
$rst .= ".. figure:: img/$path.*\n";
|
||||
$rst .= ".. image:: img/$path.*\n";
|
||||
if ($isWhite) {
|
||||
$rst .= " :class: white-icon\n";
|
||||
}
|
||||
@@ -118,7 +118,7 @@ foreach($icons as $class => $icon) {
|
||||
print(" - creating dir $dir \n");
|
||||
mkdir($dir, 0777, true);
|
||||
}
|
||||
|
||||
|
||||
// ! can't use svg in rst
|
||||
// copy original icon
|
||||
// if (!@copy($sourceDirectory . $icon . '.svg', $destinationDirectory . 'img/' . $path . '.svg')) {
|
||||
@@ -159,7 +159,5 @@ print(" - done! \n");
|
||||
|
||||
// path = path.split('/')
|
||||
// localpath = '/'.join(path[3:5])
|
||||
// result += ".. figure:: img/" + localpath + ".*\n :height: 32\n :width: 32\n\n " + icon[1:] + "\n\n"
|
||||
// result += ".. image:: img/" + localpath + ".*\n :height: 32\n :width: 32\n\n " + icon[1:] + "\n\n"
|
||||
// os.system('inkscape -z img/' + localpath + '.svg -e img/' + localpath + '.png')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user