DEV Community

Discussion on: Ideas about preserving history of "fixes" to problems you've encountered?

Collapse
 
1hoog profile image
1hoog

I use mkdocs, a simple markdown to html builder. I use it for oneliners, code snippets or short bulletlist styled instructions.

I mount the remote folder and when making a change to that folder (edit a file, add a file etc) the markdown files get build to html on the server so the changes will be available online immediately. I'm using


 to watch for changes and call

 ```mkdocs build```

 when there are any.

The readthedocs theme has search built in so I created the following function and

 ```xdg-open http://mysnippets.net/search.html?q=$1+$2+$3+$4+$5+$6+$7+$8 2>/dev/null &```

 and created an alias for it. Now when I need to search for something I can do something like

 ```sd vim+cut+paste```

 and it will open up my browser fill in the search parameters and serve me the matched snippets. 
Enter fullscreen mode Exit fullscreen mode