Skip to content

MichaelPetitclerc/MatterControl-Help

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MatterControl-Help

Simplest change workflow

  1. Open and edit a document on the website

  2. Submit a pull request for the individual change

  3. Images should be upoaded to https://www.matterhackers.com/admin/images/. All images sholud be scaled to 640 wide to fit the expected theme.

Advanced change workflow

  1. Log in to GitHub with your account
  2. Fork the repository to make your own copy
  3. image
  4. Download the repository to your computer using SourceTree
  5. Edit content on your local filesytem in the cloned repository using Visual Studio Code
  6. Commit your changes locally
  7. Push to your remote fork
  8. Issue a pull request from your fork

Migrating Content

MatterControl 1.7 articles have been imported and converted to Markdown from http://wiki.mattercontrol.com. You can find the converted documents at https://github.com/jlewin/mc-docs/tree/master/docs. There are many ways to import a given article but we'll choose the web workflow to start:

  1. Open an article from jlewin/mc-docs
  2. Click the Edit icon as depicted in the instructions above
  3. Copy the Markdown text to the clipboard
  4. Return to this repository and create a new document for the content
  5. Type the full path to the location where the new file will be. Missing path steps will get new folders created for them.
  6. Paste the Markdown text from the clipboard into the new document
  7. Click the Commit New File button to save your changes and start or continue a pull request

Wyam build and deploy

This is the short-term procedure required for success. Long term we need to resolve the Wyam/worktree conflicts and script this as part of deploy/build cake task

  1. Open PowerShell
  2. Change to your MatterControl-Help repository cd \source\mh-help
  3. Delete the output directory
  4. Remove the worktree git worktree prune
  5. Remove the local gh-pages branch git branch -d gh-pages
  6. Fetch git fetch --all
  7. Pull the latest content from the master branch git pull upstream master
  8. Build Wyam .\build.ps1 -t build or .\tools\Wyam.1.4.1\tools\net462\Wyam.exe build
  9. Rename the output directory mv output output_
  10. Map output directory to gh-pages worktree git worktree add output gh-pages
  11. Delete existing content in the output worktree
  12. Copy the build output into the worktree cp output_ output
  13. Create commit cd output; git add --all; git commit -m "Latest docs"
  14. Push the content to your local repo and issue a new pull request git push

Wyam TOC generation

Edit config.wyam to customize TOC generation

About

Documentation for MatterControl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 88.3%
  • C# 11.7%