In order to leverage the Github pull request process for access control to the wiki, it is stored in a separate Github repo.
-
From the wiki page you wish to edit on https://wiki.rusefi.com, click on the "Edit on GitHub" link in the upper right hand corner.
-
Sign in to Github or sign up if you aren't already
-
Edit the page, scroll to bottom of page and enter a "change title" and clicking on "Propose Changes". This will fork the repository (if not created already), create a branch and give you the option to create a pull request.
-
Click "Create Pull Request" and wait for your change to be reviewed.
-
Sign up or sign in to Github if you aren't already
-
Open the documentation repo and click 'Fork' - this would produce your own fork/copy of rusefi_documentation which you can now edit right in your browser!
-
Edit your code and Commit changes using the button below the editor.
-
Once you are ready to contribute your changes, click the 'New pull request' button on the main page of your fork.
If you are using Linux, macOS, or WSL on Windows, this is a good option because it allows you to test your changes.
-
Fork the rusefi_documentation repo and clone it to your computer.
-
Make your changes.
-
Push your changes to your fork on Github, and create a pull request.
Within the next 5 minutes after the pull request has been merged, a Github Action automatically builds the wiki and uploads it to both wikis.
-
Sign up or sign in to Github if you aren't already
-
Go to https://github.com/rusefi/rusefi and click "Fork" near the upper right corner
-
Edit your fork of the TunerStudio input file
-
Click "Contribute", then "Open Pull Request", and finally "Create Pull Request"
-
Wait for your changes to be reviewed and merged.
This commit is an example of how more help could be added right into TunerStudio project file. Lines with green background are the lines being added.
Unfortunately while you would be modifying your mainController.ini file while trying your changes, you need to edit rusefi.input file which is a template from which rusefi.ini is generated programmatically on rusefi side.
Github Wiki is weird.
One the one hand, we have https://github.com/rusefi/rusefi_documentation, which we will call "wiki-source".
That's a git repository with nice pull request process, but less nice web page rendering which starts each page by showing a list of files - that's not what end users want to see.
On the other hand, we have the Github Wiki, which we will call "wiki2" which is displayed much nicer - and that is actually implemented by ANOTHER git repository https://github.com/rusefi/rusefi.wiki.git behind the scenes.
That repository does not have a nice Pull Request process :(
Solution? A combination. wiki2 and wiki-source repositories are actually set to mirror each other.
This way we have the nice Pull Request process on wiki-source and once changes are merged, the wiki-source repo is then automatically merged into the wiki2 repo, which makes actual content nicely visible on wiki2
Synchronization between wiki2 and wiki-source is automated via Github Action, file content is expected to be the same between these two repositories.
If the first line with content is a top-level header, e.g. # rusEFI Documentation
, that will be used as the page title.
If not, the file name will be used as the page title, only without the hyphens.
Links to page names use only the name of the page. Example:
[How to contribute to documentation](HOWTO-contribute-to-documentation)
Result:
How to contribute to documentation
Links to images are relative to the root of the wiki on Wiki2, and relative to the .md file location on Wiki3.
The only way for this to work consistently between Wiki2 and Wiki3 is to have a flat directory structure.
Example:
![TunerStudio New Project View](FAQ/images/TunerStudio_new_project.png)
Result:
Link shortcuts are maintained in https://github.com/rusefi/web_backend/tree/master/www/s#readme
ToDo: explain rules when to use link shortcuts
Q: Is there a place where we are holding all images for these documents?
A: We have images in the same repository! Just add your images while editing pages. Please consider using some (any really) folder structure.
For example https://github.com/rusefi/rusefi_documentation/blob/master/FAQ/images/TunerStudio_new_project.png is visible on wiki.rusefi.com as https://wiki.rusefi.com/FAQ/images/TunerStudio_new_project.png
Q: What sort of fancy options do we have?
A: We can do collapsible sections & hints sections! See cranking for an example. Unfortunately, it's quite picky about how you format the markdown.
<details markdown="1"><summary>More...</summary>
^ Must have empty line after </summary>
# Content
</details>
^ Must have empty line after </details>
Q: Is it ok that https://github.com/rusefi/rusefi.wiki.git cannot be opened from browser?
A: There is no reason to open https://github.com/rusefi/rusefi.wiki.git from browser. Also while you technically
CAN "git clone https://github.com/rusefi/rusefi_documentation.wiki.git" and it would work -
you should NOT. Anyone looking to make changes should be making changes to non-wiki git via normal fork & pull request process.
Additional automation is in charge of merging from https://github.com/rusefi/rusefi_documentation.git into https://github.com/rusefi/rusefi_documentation.wiki.git