Based on: https://paulkogel.github.io/simple-babel-webpack-template
- create a link-public google doc with contents like
[steps_scrollsection]
graph: img:filename1.png
text: <p>Text 1 with <span data-color="#c14242">red color highlight</span>.</p>
:end
graph: img:filename2.png
text: <p>Second text with <span data-color="#c14242">another color highlight</span>.</p>
:end
-
put the image files in
dist/images, make sure to also include a version which includes_mobilein front of the.png. -
update download link in
download_archie.bashand executebash download_archie.bashin the directory, checksrc/steps.archieml -
install prerequisites & start development server
npm install
npm run devserver
- if you have multiple scrollsections, change
index.htmlby copy-pasting theqvv_scrollsectionsubtree and changingdata-stepsto match the archieml key
-
quit devserver using
CTRL+C -
Compile the JavaScript for deployment
npm run build
Check dist/js for output:
application.js(transpiled source code)application.js.map(source map)
-
upload the whole
distfolder to somewhere -
embed the following code for each scroll section (change data-steps if neccessary and data-image-prefix to the absolute url of the image folder, like
https://data.addendum.org/gfx/20xx-yyy-zzz/scrolly/images)
<div class="qvv_scrollsection" data-steps="steps_scrollsection" data-image-prefix="your-path-here">
<div class="container">
<div class="graphcontainer">
<div class="graph"></div>
</div>
<div class="sections"></div>
</div>
</div>
- under the last scrollsection, embed (fix the path!)
<script src="scripttag.js"></script>