Skip to content

UW-Advanced-Robotics-Lab/lab-wiki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

[Last generated: Tue 12 Sep 2023 16:31:48 EDT]


Click Here to Access Lab Wiki Page and Guide Docs --> Wiki Sync (Latest)

1. Instructions on Wiki Page

⚠️ Please Clone the Wiki Repository to maintain the changes and merge the changes. The Repository Actions will overwrite anything edited directly on Wiki, upon the next push onto the main branch.

1.0 Clone the wiki locally:

  1. > Setup GitHub <

  2. Clone the Wiki:

    $ git clone [email protected]:UW-Advanced-Robotics-Lab/lab-wiki.git

1.1 Modifying Contents:

  1. Create a new branch:

    $ git checkout -b user/jack/edit-2023-09-08
  2. Modify files inside ./docs, and add resources to ./docs/resources

    📓 The Action tab will automatically synchronize the contents inside ./docs to the lab wiki page

    ⚠️ Do not directly modify the wiki tab online, as they will get overridden by a new push from the lab-wiki repository. (lab-wiki --> lab-wiki.wiki synchronization is one-way only. )

1.1.1 If Modifing Contents:

  • Do not change anything manually between the html tags:

    • <!-- Header -->
      <!-- Body -->
      
      <!-- Here is where you can touch! -->
      
      <!-- Footer -->
  • Make proper indexing of the header with explicit numbering:

    # 1. Section
    # 1.2 Subsection
    ...

1.1.2* If Creating a New Page:

  • Make sure your file name styles:

    [Group]:[File-name].md
    
    == [Group]:
    * Lab:            Lab specific contents
    * Logbook:        Logbook, does not need to be up-to-date instruction
    * Tips:           General Tips, need to be concise, and up-to-date
    * Waterloo-Steel: Hardware specific and setup related, MUST up-to-date, and concise, summarized and step-by-step instructions
    
    • This file name style will be used by the header generator to generate the Table-of-Contents (TOC) in the next step

1.2 Run Automated Book-keeping:

1.2.1 If Modified Contents:

  1. To generate Table of Contents:

    1. Invoke markdown auto-gen scripts:

      # This file only targets `${scritp-loc}/../docs/*.md` files
      # - to update toc for modified files before committing:
      $ source scripts/markdown-toc.sh && markdown_toc_directory -git
      # - update all toc for all files regardless of files changes:
      $ source scripts/markdown-toc.sh && markdown_toc_directory docs
    2. ⭐ If uwarl-robot_configs is installed, use:

      $ md_toc_dir git  	# update only modified readme
      # OR:
      $ md_toc_dir docs 	# update all readme in docs
      # OR:
      $ md_toc docs/README.md	# update a specific readme file

1.2.2* If Created a New Page:

  1. To generate a Sidebar Header for Github Wiki:

    $ cd docs
    $ github-wiki-sidebar --silent

1.3 Push your Wiki:

  1. Push your changes:

    $ git commit .
    $ git push -u origin user/jack/edit-2023-09-08
  2. Merge your changes to main --> Publish to Wiki

    • Create a PR like: PR example

      • Tag Reviewers [jaku-jaku] or anyone you want to review
      • Once review is done, you may hit the button [MERGE]
    • Once, it is merged, the script inside GitHub Actions will publish your changes modified inside "./docs" to the wiki page.

    • check your published status: Status-of-publish

    • View your published wiki: wiki page

  3. You should also update your local main:

    $ git checkout main
    $ git pull
    # [OPTIONAL] delete old branch:
    $ git branch -D user/jack/edit-2023-09-08
    # [OPTIONAL] rebase to latest:
    $ git checkout user/jack/edit-2023-09-08
    $ git rebase main
    $ git push 

2. Tips

2.1 Recommended Editors:

  1. VS Code with Extension: free, all OS, as long as you have VSCode
  2. Typora, great but no longer free
  3. Obsidian, should be free

> Back To Top <

About

Lab documentation!

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •