Server IP : 162.213.251.212 / Your IP : 3.145.90.244 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/allssztx/needapair.com/node_modules/docxtemplater/.github/ |
Upload File : |
# Contribution Guide This is an open-source project. Please be kind and have a positive attitude. ## How can you solve an issue by your own The best way to debug a problem is to **inspect** the docx. You can unzip a docx, the main files are the following: - `word/document.xml` : contains the main part of the document - `word/media/` : contains the images - `word/_rels/` : contains the link to the images, other media ## Issues Please give information about: Whether you use docxtemplater: - on the client side (which browser ?, or does it fail on all browsers ?) - on the server side please also include a **minimal, self contained code sample** that reproduces the bug. ### What is a minimal, self contained code sample ? A minimal,self contained code sample is a sample that shows the issue that you are having. It is **minimal** because it should be the way to show the issue that doesn't add any unnecessary stuff, like including other modules, doing something unrelated to docxtemplater, ... It is **self contained** because everything to reproduce the issue is inside the sample, **including** the docx documents, images, ... I don't work primarly with microsoft word and don't want to recreate all samples by hand, using a minimal, self contained example will help a lot to get a **faster** answer to your issue. ## Legal By submitting a Pull Request, you disavow any rights or claims to any changes submitted to the Docxtemplater project and assign the copyright of those changes to Edgar Hipp. If you cannot or do not want to reassign those rights (your employment contract for your employer may not allow this), you should not submit a PR. Open an issue and someone else can do the work. This is a legal way of saying "If you submit a PR to us, that code becomes ours". 99.9% of the time that's what you intend anyways; we hope it doesn't scare you away from contributing. ## Pull Requests To generate the JS files, I use npm scripts : ``` git clone https://github.com/open-xml-templating/docxtemplater.git cd docxtemplater npm run preversion ``` Be sure the tests still pass if you do a change : ``` npm test ```