Commit a4eadfa6 authored by Marco Cavalli's avatar Marco Cavalli
Browse files

Update .gitignore, README.md, and API.docx

parent bcd4de8f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3,13 +3,14 @@ node_modules
public
media
saved_files
official
editing

# OUTPUT FILES
background_highlight.css
temp.docx
API.css
API.html
API.docx
html_to_docx_output.docx
~$*
API/
@@ -17,3 +18,4 @@ editing.zip
official.zip
package.json
package-lock.json
public/API.css
+1 −0
Original line number Diff line number Diff line
@@ -116,6 +116,7 @@ or

Finally create API.html, reusing pandoc with our custom filters and toc option:  
> `pandoc --extract-media ./ -f docx -t chunkedhtml -L filter_1.lua -L filter_2.lua  --css=styling.css --css=API.css -s temp.docx -o ./API --toc --toc-depth 4 --template=editing.html --split-level=1`
> `cp API.css ./public/API.css`

### Explanation of Lua scripts  
With the above command we run two lua scripts (called filters in Pandoc terminology). These get executed in order during the convsersion.  

data/API.docx

0 → 100644
+7.51 MiB

File added.

No diff preview for this file type.