[
https://issues.apache.org/jira/browse/TINKERPOP-927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15456576#comment-15456576
]
Daniel Kuppitz commented on TINKERPOP-927:
------------------------------------------
Again a note to myself: After building the docs and checking out the the
current remote version:
{code}
rm -rf target/svn
mkdir -p target/svn
${SVN_CMD} co --depth immediates
https://svn.apache.org/repos/asf/tinkerpop/site target/svn
rm -f target/docs/htmlsingle/images/tinkerpop3.graffle
pushd target/svn
${SVN_CMD} update "docs/${VERSION}"
{code}
...the following command can be used to get a nice overview of differences:
{code}
# create a dummy file (only to test the "new file" scenario)
touch ../docs/htmlsingle/new
diff -rq docs/3.2.2-SNAPSHOT/ ../docs/htmlsingle/ | awk '/^Files / {print "U "
gensub("^[^/]*/[^/]*/", "", "g", $2)} /^Only in docs/ {print "D " gensub(/:$/,
"", "g", gensub("^[^/]*/[^/]*/", "", "g", $3)) "/" $4} /^Only in \.\./ {print
"A " gensub(/:$/, "", "g", gensub("^[^/]*/[^/]*/[^/]*/", "", "g", $3)) "/" $4}'
| sed 's/^\(.\) \//\1 /g'
popd
{code}
I've tested it by checking out the published 3.2.2-SNAPSHOT docs and building
the 3.2.1 docs locally. This was the result:
{noformat}
U dev/developer/index.html
U dev/provider/index.html
D images/betweeness-example.png
D images/graph-cycle.png
D images/gremlin-chef.png
U images/gremlin-gym.png
D images/gremlin-house-of-mirrors-cropped.png
D images/gremlin-house-of-mirrors.png
D images/gremlin-python-drawing.png
D images/gremlin-variant-architecture.png
D images/jython-logo.png
D images/language-drivers.png
D images/language-variants.png
D images/nine-inch-gremlins.png
U images/olap-traversal.png
D images/python-logo.png
D images/recipe-job-schema.png
D images/remote-graph.png
D images/shortest-path.png
U index.html
A new
D recipes
U reference/index.html
U tutorials/getting-started/index.html
D tutorials/gremlin-language-variants
U tutorials/the-gremlin-console/index.html
U upgrade/index.html
{noformat}
Based on that {{publish-docs.sh}} could run a few commands to update the
currently published docs and the whole process should be done within a few
seconds.
> bin/publish-docs.sh should only upload diffs.
> ---------------------------------------------
>
> Key: TINKERPOP-927
> URL: https://issues.apache.org/jira/browse/TINKERPOP-927
> Project: TinkerPop
> Issue Type: Improvement
> Components: build-release
> Affects Versions: 3.0.2-incubating
> Reporter: Marko A. Rodriguez
> Assignee: Daniel Kuppitz
>
> It takes forever for us to publish-docs. Can we just do a "diff" and see what
> changed (MD5?) and then {{svn up}} only those files?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)