Skip to content

Commit 36f562b

Browse files
committed
switch sourcecs overview to svg
1 parent 706e11d commit 36f562b

File tree

7 files changed

+988
-27
lines changed

7 files changed

+988
-27
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ test-output
88
.idea
99
.DS_Store
1010
.factorypath
11+
12+
/*.svg
-142 KB
Binary file not shown.

content/resources/maven-sources.svg

Lines changed: 935 additions & 0 deletions
Loading

content/xdoc/maven-sources.odg

11.1 KB
Binary file not shown.

content/xdoc/scm.xml

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -67,33 +67,7 @@ repo start master --all</pre>
6767

6868
<subsection name="Maven Sources Overview">
6969
<p align="center">
70-
<img src="maven-sources.png" width="843" height="837" border="0" usemap="#maven-sources" />
71-
<map name="maven-sources">
72-
<area shape="rect" coords="8,1,82,36" alt="Site" href="https://github.com/apache/maven-site" />
73-
<area shape="rect" coords="100,0,205,37" alt="Sources" href="https://github.com/apache/maven-sources/" />
74-
<area shape="rect" coords="89,43,171,78" alt="Maven" href="/ref/current" />
75-
<area shape="rect" coords="178,43,275,78" alt="Core ITs" href="/core-its" />
76-
<area shape="rect" coords="283,43,387,78" alt="Resolver" href="/resolver" />
77-
<area shape="rect" coords="393,43,497,78" alt="Ant Tasks" href="/resolver-ant-tasks" />
78-
<area shape="rect" coords="1,89,842,424" alt="Plugins" href="/plugins" />
79-
<area shape="rect" coords="80,432,163,466" alt="Doxia" href="/doxia/doxia" />
80-
<area shape="rect" coords="169,432,278,467" alt="Site Tools" href="/doxia/doxia-site-tools" />
81-
<area shape="rect" coords="283,432,359,466" alt="Site" href="/doxia" />
82-
<area shape="rect" coords="445,431,549,466" alt="Converter" href="/doxia/doxia-tools/doxia-converter" />
83-
<area shape="rect" coords="554,431,659,466" alt="Linkcheck" href="/doxia/doxia-tools/doxia-linkcheck" />
84-
<area shape="rect" coords="69,473,191,508" alt="Archetypes" href="/archetypes" />
85-
<area shape="rect" coords="198,473,272,508" alt="Poms" href="/pom" />
86-
<area shape="rect" coords="280,473,355,508" alt="Skins" href="/skins" />
87-
<area shape="rect" coords="392,472,468,507" alt="Studies" href="/studies" />
88-
<area shape="rect" coords="502,473,597,508" alt="Indexer" href="/maven-indexer" />
89-
<area shape="rect" coords="604,473,699,509" alt="Wagon" href="/wagon" />
90-
<area shape="rect" coords="705,473,836,509" alt="Plugin testing" href="/plugin-testing" />
91-
<area shape="rect" coords="69,515,164,551" alt="dist tool" href="https://builds.apache.org/job/dist-tool-plugin/site/index.html" />
92-
<area shape="rect" coords="280,514,354,550" alt="env" href="https://github.com/apache/maven-jenkins-env" />
93-
<area shape="rect" coords="360,515,435,550" alt="lib" href="https://github.com/apache/maven-jenkins-lib" />
94-
<area shape="rect" coords="1,557,833,779" alt="shared" href="/shared" />
95-
<area shape="rect" coords="1,787,560,836" alt="Plexus" href="https://codehaus-plexus.github.io/" />
96-
</map>
70+
<object type="image/svg+xml" data="maven-sources.svg" width="1090" height="995"/>
9771
</p>
9872
<p>Each component has its own Jira project or component for issue tracking:
9973
see the <a href="/issue-management.html">Issue Management report</a> to get a summary.

prepare-svg.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
#libreoffice --headless --convert-to svg content/xdoc/maven-sources.odg
4+
# CLI export keeps full A3 page
5+
# I prefer doing it by hand, limiting export to "selection" = avoids extra space
6+
7+
# svgo https://github.com/svg/svgo
8+
svgo --config svgo.config.mjs maven-sources.svg -o maven-sources-optimized.svg
9+
10+
cat maven-sources-optimized.svg \
11+
| sed 's/a xlink:href/a target="_parent" xlink:href/' \
12+
| sed 's_file://__' \
13+
> content/resources/maven-sources.svg

svgo.config.mjs

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
export default {
21+
js2svg: {
22+
indent: 1,
23+
pretty: true,
24+
},
25+
plugins: [
26+
'preset-default',
27+
{
28+
name: "removeAttrs",
29+
params: {
30+
attrs: [
31+
"g:class",
32+
"path:class",
33+
]
34+
}
35+
},
36+
],
37+
};

0 commit comments

Comments
 (0)