From 5de3dc802f59ea440cc610b8182d52387c430248 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Sun, 5 Aug 2018 04:24:04 +0100 Subject: [PATCH] Add more examples --- docs/examples.md | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/docs/examples.md b/docs/examples.md index 3143bc4dff..45e16ea75c 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -1,5 +1,7 @@ # Examples +> All examples can run independently and can be found in the `/demo` folder of the project + ## Simple A simple hello world of the `docx` library: @@ -14,7 +16,7 @@ This example shows how to customise the look and feel of a document using JS con [Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo2.js ':include') -Source: https://github.com/dolanmiu/docx/blob/master/demo/demo2.js +*Source: https://github.com/dolanmiu/docx/blob/master/demo/demo2.js* ## Numbering @@ -23,7 +25,7 @@ This example shows many levels of numbering [Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo3.js ':include') -Source: https://github.com/dolanmiu/docx/blob/master/demo/demo3.js +*Source: https://github.com/dolanmiu/docx/blob/master/demo/demo3.js* ## Table @@ -31,4 +33,28 @@ Example of simple table [Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo4.js ':include') -Source: https://github.com/dolanmiu/docx/blob/master/demo/demo4.js \ No newline at end of file +*Source: https://github.com/dolanmiu/docx/blob/master/demo/demo4.js* + +## Images + +Importing Images from file system path + +[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo5.js ':include') + +*Source: https://github.com/dolanmiu/docx/blob/master/demo/demo5.js* + +## Margins + +Example showing how to set custom margains + +[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo6.js ':include') + +*Source: https://github.com/dolanmiu/docx/blob/master/demo/demo6.js* + +## Orientation + +Example showing how to set the document to `landscape` or `portrait` + +[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo7.js ':include') + +*Source: https://github.com/dolanmiu/docx/blob/master/demo/demo7.js* \ No newline at end of file