diff --git a/docs/usage/headers-and-footers.md b/docs/usage/headers-and-footers.md index f93cae332c..bdde55613b 100644 --- a/docs/usage/headers-and-footers.md +++ b/docs/usage/headers-and-footers.md @@ -25,7 +25,7 @@ doc.Header.createImage([BUFFER_OF_YOUR_IMAGE]); doc.Footer.createImage([BUFFER_OF_YOUR_IMAGE]); ``` -Refer to [`demo8.ts`](https://github.com/dolanmiu/docx/blob/master/demo/demo8.ts) for more information. +Refer to [`8-header-footer`](https://github.com/dolanmiu/docx/blob/master/demo/8-header-footer.ts) for more information. ## Multiple Headers and Footers diff --git a/docs/usage/images.md b/docs/usage/images.md index 693b2d4781..851c476e60 100644 --- a/docs/usage/images.md +++ b/docs/usage/images.md @@ -227,22 +227,22 @@ Media.addImage(doc, fs.readFileSync("./demo/images/pizza.gif"), 200, 200, { Importing Images from file system path -[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo5.ts ":include") +[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/5-images.ts ":include") -_Source: https://github.com/dolanmiu/docx/blob/master/demo/demo5.ts_ +_Source: https://github.com/dolanmiu/docx/blob/master/demo/5-images.ts_ ### Add images to header and footer Example showing how to add image to headers and footers -[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo9.ts ":include") +[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/9-images-in-header-and-footer.ts ":include") -_Source: https://github.com/dolanmiu/docx/blob/master/demo/demo9.ts_ +_Source: https://github.com/dolanmiu/docx/blob/master/demo/9-images-in-header-and-footer.ts_ ### Floating images Example showing how to float images on top of text and optimally give a `margin` -[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo38.ts ":include") +[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/38-text-wrapping.ts ":include") -_Source: https://github.com/dolanmiu/docx/blob/master/demo/demo38.ts_ +_Source: https://github.com/dolanmiu/docx/blob/master/demo/38-text-wrapping.ts_ diff --git a/docs/usage/page-numbers.md b/docs/usage/page-numbers.md index 5ff66ae50c..45348385bb 100644 --- a/docs/usage/page-numbers.md +++ b/docs/usage/page-numbers.md @@ -61,6 +61,6 @@ doc.Header.createParagraph().addRun(new TextRun("Page ").pageNumber()).addRun(ne Adding page numbers to Header and Footer -[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo39.ts ':include') +[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/39-page-numbers.ts ':include') -_Source: https://github.com/dolanmiu/docx/blob/master/demo/demo39.ts_ +_Source: https://github.com/dolanmiu/docx/blob/master/demo/39-page-numbers.ts_ diff --git a/docs/usage/paragraph.md b/docs/usage/paragraph.md index a398c82e40..c770e8c00f 100644 --- a/docs/usage/paragraph.md +++ b/docs/usage/paragraph.md @@ -265,7 +265,7 @@ const paragraph = new Paragraph({ ![Page Break Before in Word](https://user-images.githubusercontent.com/34742290/40176503-df3a8398-59db-11e8-8b9c-d719f13aa8b4.png) -Example: https://github.com/dolanmiu/docx/blob/master/demo/demo15.ts +Example: https://github.com/dolanmiu/docx/blob/master/demo/15-page-break-before.ts ## Page break control diff --git a/docs/usage/styling-with-xml.md b/docs/usage/styling-with-xml.md index ee5a2b1db4..463599e4e4 100644 --- a/docs/usage/styling-with-xml.md +++ b/docs/usage/styling-with-xml.md @@ -44,4 +44,4 @@ doc.add(paragraph); doc.createParagraph("Some normal text"); ``` -Example: https://github.com/dolanmiu/docx/blob/master/demo/demo13.ts +Example: https://github.com/dolanmiu/docx/blob/master/demo/13-xml-styles.ts diff --git a/docs/usage/table-of-contents.md b/docs/usage/table-of-contents.md index 53e8e7df57..538249bbf9 100644 --- a/docs/usage/table-of-contents.md +++ b/docs/usage/table-of-contents.md @@ -71,6 +71,6 @@ doc.add(new Paragraph("My Spectacular Style #1").style("MySpectacularStyle").pag ### Complete example -[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo28.ts ':include') +[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/28-table-of-contents.ts ':include') -_Source: https://github.com/dolanmiu/docx/blob/master/demo/demo28.ts_ +_Source: https://github.com/dolanmiu/docx/blob/master/demo/28-table-of-contents.ts_ diff --git a/docs/usage/tables.md b/docs/usage/tables.md index 70556ae028..580ea95de3 100644 --- a/docs/usage/tables.md +++ b/docs/usage/tables.md @@ -247,60 +247,60 @@ table.getRow(0).setTableHeader(); ## Examples -[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo4.ts ":include") +[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/4-basic-table.ts ":include") -_Source: https://github.com/dolanmiu/docx/blob/master/demo/demo4.ts_ +_Source: https://github.com/dolanmiu/docx/blob/master/demo/4-basic-table.ts_ ### Custom borders Example showing how to add colourful borders to tables -[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo20.ts ":include") +[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/20-table-cell-borders.ts ":include") -_Source: https://github.com/dolanmiu/docx/blob/master/demo/demo20.ts_ +_Source: https://github.com/dolanmiu/docx/blob/master/demo/20-table-cell-borders.ts_ ### Adding images Example showing how to add images to tables -[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo24.ts ":include") +[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/24-images-to-table-cell.ts ":include") -_Source: https://github.com/dolanmiu/docx/blob/master/demo/demo24.ts_ +_Source: https://github.com/dolanmiu/docx/blob/master/demo/24-images-to-table-cell.ts_ -[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo36.ts ":include") +[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/36-image-to-table-cell.ts ":include") -_Source: https://github.com/dolanmiu/docx/blob/master/demo/demo36.ts_ +_Source: https://github.com/dolanmiu/docx/blob/master/demo/36-image-to-table-cell.ts_ ### Alignment of text in a cell Example showing how align text in a table cell -[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo31.ts ":include") +[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/31-tables.ts ":include") -_Source: https://github.com/dolanmiu/docx/blob/master/demo/demo31.ts_ +_Source: https://github.com/dolanmiu/docx/blob/master/demo/31-tables.ts_ ### Merging rows Example showing merging of `rows` -[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo32.ts ":include") +[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/32-merge-table-cells.ts ":include") -_Source: https://github.com/dolanmiu/docx/blob/master/demo/demo32.ts_ +_Source: https://github.com/dolanmiu/docx/blob/master/demo/32-merge-table-cells.ts_ -[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo41.ts ":include") +[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/41-merge-table-cells-2.ts ":include") -_Source: https://github.com/dolanmiu/docx/blob/master/demo/demo41.ts_ +_Source: https://github.com/dolanmiu/docx/blob/master/demo/41-merge-table-cells-2.ts_ ### Merging columns Example showing merging of `columns` -[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo43.ts ":include") +[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/43-images-to-table-cell-2.ts ":include") -_Source: https://github.com/dolanmiu/docx/blob/master/demo/demo43.ts_ +_Source: https://github.com/dolanmiu/docx/blob/master/demo/43-images-to-table-cell-2.ts_ ### Floating tables -[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo34.ts ":include") +[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/34-floating-tables.ts ":include") -_Source: https://github.com/dolanmiu/docx/blob/master/demo/demo34.ts_ +_Source: https://github.com/dolanmiu/docx/blob/master/demo/34-floating-tables.ts_