learn-to-code icon indicating copy to clipboard operation
learn-to-code copied to clipboard

Convert to static site for readability and menus

Open MichaelCurrin opened this issue 5 years ago • 10 comments

Consider what to do with scripts which are meant to be run locally or as a webserver. Perhaps the resource docs can be moved to a separate repo.

Consider the repeated format of resources and even install steps could be standardized and moved to Jekyll templating. With markdown files or data files.

MichaelCurrin avatar Dec 11 '19 09:12 MichaelCurrin

See my coding blog post for options.

One of the important things is automatically building menus.

To use something with a build other than Jekyll, look at Netlify.

Use code theme.

MichaelCurrin avatar Jan 01 '20 09:01 MichaelCurrin

This is low priority though because it is still presentable and usable as is.

MichaelCurrin avatar Jan 01 '20 09:01 MichaelCurrin

Docsify vs Jekyll

Consider how to avoid nesting menus too deeply And how to make sidebar not require manual updating.

Also consider navbar in the top and details on the sidebar, like Docsify.

MichaelCurrin avatar Jan 22 '20 11:01 MichaelCurrin

Consider moving everything to a central learntocode directory.

MichaelCurrin avatar Feb 28 '20 14:02 MichaelCurrin

Jekyll has a menu plugin and also its easy enough to loop over pages within the current section. That can be a menu on a section page rather than just navbar. Nested droplist menu won't be nice.

Jekyll is nice for repeated structure and data can even go in metadata - that can be edited in Jekyl Admin. Docsify menus are automatic within a section (and each language could be section on the top or left) but then would need to make a super long file for each to get the menus. Or have to manually update a sidebar file which is not good for large project.

MichaelCurrin avatar Mar 22 '20 20:03 MichaelCurrin

Use lowercase and underscore names for files and folders. It makes everything consistent and easy to link.

This means that menu configuration or some index/README in a folder with no direct files might be needed to name a folder on the frontend.

MichaelCurrin avatar Mar 30 '20 11:03 MichaelCurrin

Jekyll would be great for using file linking to test broken URLs.

Then using a Ruby tester for external URLs.

MichaelCurrin avatar Apr 08 '20 17:04 MichaelCurrin

An auto placement of external link fontawesome icon will help differentiate between internal and external URLs.

Any links to Github repos (homepage) could also be supplemented with icon or badge

MichaelCurrin avatar Apr 08 '20 17:04 MichaelCurrin

See if the templating and theme and admin view can be common between this and cheatsheet repo. Cheatsheets needs to be on its own so its a quick reference, but they can look consistent and share a common 3rd theme repo that I write, which is built on another theme.

MichaelCurrin avatar Apr 08 '20 17:04 MichaelCurrin

Jekyll might be a good choice here for templating.

Jekyll handles templating easily.

Perhaps Docsify and MkDocs can do that but I haven't covered that or there are plugins needed.

Jekyll can also check broken links - otherwise use Netlify or similar CI check or that Ruby tool.

MichaelCurrin avatar May 04 '20 10:05 MichaelCurrin