-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tweak user docs #1238
Tweak user docs #1238
Conversation
@ang-zeyu looks like I need to use the latest master to for this PR for travis to work. How do I use the latest master branch to preview the website (rather than the installed version of MarkBind)? |
you can clone the repo then cd to it and run |
Reason: extra spaces causes the popover to be rendered as a '-' in the generated page.
As this page is just a 'quick start' guide, it is better to minimize extra information. Let's mention other templates as a tip rather than a separate tab.
Limit pageNav depth to 3 so that it omits some lower level headings that are contained within examples and not actually meant to appear in the pageNav.
As search bars can be considered a 'component', let's cross-list it in the 'Using Components' page as well.
Nice. Didn't realize it was that easy. Thanks @ang-zeyu |
This PR is ready for review. It passes Travis but the status is not updated here for some reason. |
Edit: Seems to be occuring on another pr as well |
Yes, let's proceed without it. The 'pass' status can be found here. |
Travis status is OK now. Let's get move this PR forward as I have a few more docs PRs to do after this is merged. |
@@ -0,0 +1,144 @@ | |||
## Diagrams |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we move it under plugins instead? (since it is a plugin after all) #1151
I'm thinking of removing the site/page nav from usingComponents
as well (in a separate pr), since it dosen't really fit there with the rest of the vue components, and is already repeated under tweaking the page structure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the UG we should go by what things look like to users, rather than how they are implemented. They should appear under plugins only if users need to manipulate them as plugins. Similarly, components in the UG doesn't mean Vue components but building blocks readers would be inserting into pages.
Repetition is not an issue as MarkBind is specifically designed to handle repetition. The idea is, things should appear in every place the reader can expect to see it. Having said that, a good policy is to make such repeated content as 'embedded panels' in all places it is repeated except in one place so that reader can see it supposedly belongs in one place but has been repeated in other places for readers' convenience.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah I see, reason being a new user might not realise it is a plugin before visiting the plugins page, and may mistake installing java/graphviz as a requirement markbind.
How about collapsing the one here into a minimized panel, and inserting something similar to Setting Site Properties
? (More info about the site.json file can be found in the panel below.
-> `You can include plantUml diagrams via the plantUml plugin as well... click the panel below to find out more)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the site/page nav, we can make it an embed in a separate pr on that note
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah I see, reason being a new user might not realise it is a plugin before visiting the plugins page, and may mistake installing java/graphviz as a requirement markbind.
How about collapsing the one here into a minimized panel, and inserting something similar toSetting Site Properties
? (More info about the site.json file can be found in the panel below.
-> `You can include plantUml diagrams via the plantUml plugin as well... click the panel below to find out more)
Note that I've removed all mentions of internal plugins from the UG because the user has no need to know about them. As PlantUML plugin is an internal plugin, users don't even know that it is a plugin.
Hence, from the user POV, PlantUML support is a MarkBind feature. If the user wants to use plantUML diagrams, he has to install java etc. and it is a MarkBind requirement.
Related: My initial idea was not to have any plugins as I wanted everything built-in to be one of our differentiating factors. But we ended up with some plugins along the way. Still, I want to minimize the amount of plugins-related stuff users need to deal with.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh ok noted. Also just realised it would only break if you actually use a <puml>
tag, otherwise not having graphviz is fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks neat! Just some minor nits and the scope of the usingComponents
page above ⬆️
docs/userGuide/usingPlugins.md
Outdated
|
||
**WARNING:** Plugins are executable programs that can be written by anyone. This means that they might contain malicious code that may damage your computer. | ||
A plugin is an extension that adds additional features to MarkBind. Some non-essential MarkBind functionality are provided as plugins so that you can enable/disable/configure them as necessary. MarkBind also supports adding external plugins (written by you or other third parties). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
functionalities
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup. Will fix.
docs/userGuide/usingPlugins.md
Outdated
Only run plugins from sources that you trust. Do not run the plugin if the source/origin of the plugin cannot be ascertained. | ||
</tip-box> | ||
|
||
Plugins come as `.js` files. To install an external plugin, simply put it in the `_markbind/plugins` folder. To use the plugin, update the `site.json` file the same way you did for built-in plugins: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there supposed to be content after the :
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. Will remove.
Thanks for the comments @ang-zeyu |
As most MarkBind users are not expected to deal with writing or installing plugins, let's push those instructions to the bottom of the page and simplify the instructions for managing built-in plugins.
There are number of pages that deal with site-level tasks some of which wre listed under 'Authoring Contents' (e.g., search). Let's create a new group of pages named 'Working with Sites' for pages containing info about site-level tasks.
When looking for information on how to set site-wide properties, readers are likely to look for it under 'Working with Sites' pages rather than references. Let's add a page 'Setting Site Properties' page under 'Working with Sites' group. Let's also rename the reference page to 'site.json File' so that it sounds more like a reference page. The new page will mostly refer to the 'site.json File' as setting site-wide properties is mostly done via the site.json file.
As the siteNav group heading are now collapsible even if they are linked, that could cause readers to miss out links behind group headings. Let's unlink group headings and add an 'Overview' link instead.
@ang-zeyu fixed the two typos and force-pushed. I think we can go ahead and merge without further reviews as this is just a documentation update. If the are problems, I can fix later in separate PRs. Remember to do a rebase-merge. |
did you mean |
That approach is suitable when a big task is done in multiple steps. The merge commit represents the big task while individual commits represent steps. This one is not exactly like that because these are not steps but independent fixes. For example, it's hard to write a commit message for the merge commit of this PR unless we add up all the commit messages from individual commits. Rebase merges will be rare because we require PRs to tackle no more than one thing but this will be one of those rare cases. |
👍, will update the developer guide with that info as well |
I'll be tackling the DG next. Will add it myself. |
What is the purpose of this pull request? (put "X" next to an item, remove the rest)
• [x ] Documentation update
What is the rationale for this request?
A series of improvements to UG docs
What changes did you make? (Give an overview)/ Is there anything you'd like reviewers to focus on?
It is possible to review one commit at a time as each addresses an independent issue.
Alternatively, can review via the Netlify preview of the PR. Some notable changes (refer to individual commit messages for details).
Proposed commit message: (wrap lines at 72 characters)
As the commits are fairly independent and self-contained, shall we do a rebase-and-merge?