-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add ready-to-build docs folder with the mkdocs tool #207
Conversation
I've made the input monospaced as it should have been in the first place, thanks to @rodri042 for the tip! |
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.
I love it! I will test it locally and share my thougths.
@Javi I couldn't start the server. I got the following:
Which |
Should be fixed now! Also added instructions to top post:
|
In addition to the improvements already mentioned, I'd add some kind of explanation and/or samples of what you can actually try. Perhaps a combo with a list of samples ready to be copied on the editor. Also, it would be nice to be able to have an additional simplified try-it for just coding a program and selecting the language, and generating the AST. |
Also, we should stop copying |
I don't see any native npm/bower support for mkdocs at first glance. Perhaps we could have a echo "[Mulang::Docs] Cleaning up resources..."
rm docs/js/mulang.js
rm docs/js/mumuk-styles.js
rm docs/css/mumuki-styles.js
echo "[Mulang::Docs] Installing mulang.js..."
wget https://github.com/mumuki/mulang/releases/download/v4.2.0/mulang.js.zip | unzip > docs/js/mulang.js
echo "[Mulang::Docs] Installing mumuki-styles..."
wget https://raw.githubusercontent.com/mumuki/mumuki-styles/master/dist/css/mumuki-styles.css docs/css/mumuki-styles.css
wget https://raw.githubusercontent.com/mumuki/mumuki-styles/master/dist/javascripts/mumuki-styles.js docs/js/mumuki-styles.js
echo "[Mulang::Docs] Building the docs for first time..."
mkdocs build
echo "[Mulang::Docs] Done! Now run mkdocs serve" |
@flbulgarelli Is there a published npm version of Mulang? |
yes! Check here https://www.npmjs.com/package/mulang Usage:
const mulang = require('mulang');
> mulang.analyse({
"sample" : {
"tag" : "CodeSample",
"language" : "Haskell",
"content" : "x = 1"
},
"spec" : {
"smellsSet" : { "tag" : "NoSmells" },
"expectations" : [
{
"binding" : "*",
"inspection" : "Declares:x"
}
]
}
})
{ signatures: [],
smells: [],
expectationResults: [ { expectation: [Object], result: true } ],
tag: 'AnalysisCompleted',
intermediateLanguage: null } |
I have just pushed JS compiled version for 4.5.2. We should update this PR. |
Also, we should put the docs in sync with current readme |
I have just removed cinder from source control. We should do the same with json-viewer |
7a38d47
to
567e32c
Compare
Pending tasks:
|
29a3c83
to
80c9c05
Compare
6187f67
to
0b09d9c
Compare
Deployed site with current changes |
cf9b640
to
0c38ecd
Compare
Only native languages are supported right now
Fixes #196
In order to build the site for uploading (to GH pages for example) or serving locally, you need to run
mkdocs
, which is available frombrew
,apt-get
,choco
and others.From then,
mkdocs serve
will host the site locally, andmkdocs gh-deploy
compiles the site and pushes it to the gh-pages branch.Currently the user guide looks like this:
And the first iteration of the analyser looks like this:
Some known things to improve on: