Automated User Guide Generation with Markdown
Video Tutorial in Portuguese on YouTube
-
On Linux
-
(Option 1)You can install with script
sudo wget -qO- https://raw.githubusercontent.com/welbert/guide-automator/master/install_linux.sh | bash -
-
(Option 2) Manual installation. You need install some binary dependencies.
https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
2.ImageMagick (Usually is already installed):
https://www.imagemagick.org/script/binary-releases.php#unix
http://wkhtmltopdf.org/downloads.html
4.Chrome/Chromium Browser
-Chrome: https://www.google.com/chrome/browser/desktop/index.html -Chromium: sudo apt-get install chromium-browser
https://chromedriver.storage.googleapis.com/index.html?path=2.25/
sudo npm install -g guide-automator
Node, wkhtmltopdf and Chrome WebDriver need to be add in path.
-
-
On Windows
https://nodejs.org/en/download/
https://www.imagemagick.org/script/binary-releases.php#windows
http://wkhtmltopdf.org/downloads.html
4.Chrome
-Chrome: https://www.google.com/chrome/browser/desktop/index.html
https://chromedriver.storage.googleapis.com/index.html?path=2.25/
npm install -g guide-automator
Node, ImageMagick,wkhtmltopdf and Chrome WebDriver need to be add in path.
- Params:
<url>
- Example:
- get('https://github.com/welbert');
- Params:
<cssSelector>
- Example:
- click('.unstarred > button:nth-child(2)');
- Params:
<linkText>
- Example:
- clickByLinkText('README.md');
- Params:
[imageWidth]
- Example:
- takeScreenshot;
- takeScreenshot('10%');
- Params:
<cssSelector>
,[crop]
,[outline]
,[imageWidth]
- Example:
- takeScreenshotOf('#user-content-guideautomator');
- takeScreenshotOf('#user-content-guideautomator',0,1);
- Params:
<cssSelector>
,<input>
- Example:
- fillIn('.header-search-input','guide-automator');
- Params:
<cssSelector>
- Example:
- submit('.js-site-search-form');
- Params:
<cssSelector>
,[timeOut]
- Example:
- wait('.commit-author-section');
- wait('.commit-author-section',2000);
- Params:
<milleseconds>
- Example:
- sleep(1000);