koka-lang / madoko

Madoko is a fast markdown processor for high quality academic and technical articles
Other
393 stars 42 forks source link

Is there still a way to use Madoko local when the server www.madoko.net is down (just like now)? #82

Open tlyim opened 1 year ago

tlyim commented 1 year ago

Will appreciate very much your advice on how I can still use Madoko local to make changes to and render my slides when the server www.madoko.net is down (just like now).

tlyim commented 1 year ago

The following workflow (in a Windows 10 pc with VS Code, Node.js, npm, and command line madoko installed) works for me as a substitute for the www.madoko.net server,

    "terminal.integrated.defaultProfile.windows": "Node.js Command Prompt",
    "terminal.integrated.profiles.windows": {

        "PowerShell": {
            "source": "PowerShell",
            "icon": "terminal-powershell"
        },
        "Command Prompt": {
            "path": [
                "${env:windir}\\Sysnative\\cmd.exe",
                "${env:windir}\\System32\\cmd.exe"
            ],
            "args": [
                "/k",
                "C:\\Program Files\\nodejs\\nodevars.bat"
            ],
            "icon": "terminal-cmd"
        },
        "Node.js Command Prompt": {
            "path": [
                "${env:windir}\\Sysnative\\cmd.exe",
                "${env:windir}\\System32\\cmd.exe"
            ],
            "args": [
                "/k",
                "C:\\Program Files\\nodejs\\nodevars.bat"
            ],
            "icon": "terminal-cmd"
        },

sample render.bat file:

@echo off

REM This bat file render .mdk file with madoko-cli 
REM   and move .html from the out\ directory to the .mdk's directory

set dpath=%~dp1
set name=%~n1
set newxtn=.html
set newfile=%dpath%out\%name%%newxtn%
set destination=%dpath%%name%%newxtn%

call madoko %1 

move /y "%newfile%"  "%~dp1"
wensle commented 1 year ago

The server is still down, so thank you for opening this issue. I will try your solution and post here how it went.

wensle commented 1 year ago

I'm using Ubuntu WSL and I ended up doing the following:

Simin-Du commented 1 year ago

Thanks for your sharing! It is really useful. But I still have a question that how can I new a .mdk file.

wensle commented 1 year ago

You just have to create a new file and save it with the .mdk extension.

Simin-Du commented 1 year ago

Thank you very much!

MarioVilas commented 4 months ago

Just wanted to comment that the web is still down, and so is the link to the reference documentation :/

ju-sh commented 1 month ago

Documentation is there at http://madoko.org/reference.html

But I guess this project is not much tended to now..