-
-
Notifications
You must be signed in to change notification settings - Fork 926
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
fix some typos #2487
fix some typos #2487
Conversation
Found some typos. Mainly unescaped `|` in tables, but also a few other irregularities. Not all problems are visible in the website docs.
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.
Like the idea, but it needs a few edits.
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.
(Hit the wrong button...)
I do want to note that it renders correctly, so I do want to see it rendered - I don't want a |
What do you prefer? I can remove the table changes too, and if not, is there a way to check how it actually renders on the site? |
I'd prefer your patch + my requested edits if it generates correctly, because that lets GitHub and the website both have correct formatting.
It's slightly involved, but I've done similar so many times it's almost brainless at this point. And yes, And of course, you can make this a little more magical with |
I probably should at some point write a utility wrapping the two - I find myself doing this quite a bit in various places. It's nice when dealing with projects with almost no real build system involved, just scripts everywhere. |
Thanks, it works. Now, to avoid misunderstandings, when you say that it renders correctly on the website, do you mean that |
@osban As BTW, you might want to update your branch - I made a few quality of life improvements to the build scripts. It also enables certain docs lints. There's one major thing you'll appreciate: it has a |
Uhm, are we looking at the same line? I'm seeing I'll look at the upgrade tomorrow :) |
@osban Better link: https://mithril.js.org/hyperscript.html#signature Those |
No worries, I will make sure route.md will render correctly on both the website and Github. It turns out jumping through hoops is sometimes necessary 😕 Btw, is there an easy way to update my branch? |
About the script (in Windows):
|
What is the best way to get the new changes committed? I made this commit online, but I now have a local repo. Shall I amend this commit or PR (not sure how to do that) or create a new one (should that be on a new branch?)? |
Try
Okay, I may have been incorrect on that, then. My bad - I don't use Windows hardly ever, and it's been years since I last regularly used it.
Why I said "Windows batch". 😉 Powershell uses
Upgrade to the latest stable Node. It should work there, and that's what CI uses. ( If you need to switch between this and an older version, something like nvm but for Windows (like nvm-windows or nodist) could help. |
Go to the |
Fix those symbols inside a Markdown table, so they render correctly on the website and Github.
Aha, thanks for the explanation. The whole Git thing is very confusing to me, though I'm slowly starting to understand it a little better. I've updated (read: completely overhauled) the original changes. |
@osban Just to clarify, does this render correctly to the site also? You can just compile the docs and inspect the HTML output in |
@isiahmeadows Yeah, I checked it using the 'old' |
@osban Re-sync your branch with |
@isiahmeadows I have pulled the latest version, upgraded Node to v10, did
|
I just commented out the 3 lines to work around that 😉
… On 3 Aug 2019, at 11:48, Oscar ***@***.***> wrote:
@isiahmeadows I have pulled the latest version, upgraded Node to v10, did npm rebuild. When running either npm run watch:docs or npm run build:docs I'm getting:
fatal: invalid reference: gh-pages
Error: Command failed: git checkout gh-pages -- archive
fatal: invalid reference: gh-pages
at checkExecSyncError (child_process.js:629:11)
at execFileSync (child_process.js:647:13)
at generate (C:\Users\Oscar\Documents\GitHub\mithril\scripts\generate-docs.js:57:2)
fatal: invalid reference: gh-pages
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@porsager thanks! For now I'm just using the old |
Fixed the small conflict and merged. |
* fix some typos Found some typos. Mainly unescaped `|` in tables, but also a few other irregularities. Not all problems are visible in the website docs. * fix `<>` and `|` rendering Fix those symbols inside a Markdown table, so they render correctly on the website and Github. Co-authored-by: Isiah Meadows <contact@isiahmeadows.com>
Found some typos. Mainly unescaped
|
in tables, but also a few other irregularities. Not all problems are visible in the website docs.