Add more documentation

This commit is contained in:
Dolan
2018-08-04 03:28:27 +01:00
parent 73267ac4e5
commit 7d116d1ce9
15 changed files with 841 additions and 10 deletions

35
docs/usage/document.md Normal file
View File

@ -0,0 +1,35 @@
# Document
> The `Document` object is the starting point of your `.docx` journey, this is the literal Word Document. You add all your content such as `Paragraphs` to this `Document`, and at the end export it however you like.
To create a new document, it is very easy:
```js
var doc = new docx.Document();
```
## Document properties
You can add properties to the Word document by specifying options, for example:
```js
var doc = new docx.Document({
creator: "Dolan Miu",
description: "My extremely interesting document",
title: "My Document",
});
```
### Full list of options:
```
creator
description
title
subject
keywords
lastModifiedBy
revision
```
You can mix and match whatever properties you want, or provide no properties.