The fslab blog
-
dotnet tool restoreto install thefornaxtool that is used to build the website -
conda create --name fslab-blog --file requirements.txtto set up the conda environment
conda activate fslab-blog(this has to be done once for each development session)- go into the
/srcfolder:cd src dotnet fornax watchto start the site generator in watch mode- go to
127.0.0.1:8080to see the blog
posts are generated from the contents of folders in /src/posts.
To add a new post:
-
add a folder with a url-safe name of your post to
/src/posts -
create a
post_config.mdfile. this file should only create metadata about your post, and must have this structure:--- title: <your post title> author: <your name> author_link: <a link> category: <post category> date: <YYYY-MM-DD> summary: <post summary> preview_image: images/<your_image_here.png> ---titleis the title of your postauthoris the author of the post (most likely your name)author_linkis a link that will be associated with your name. You can for example link your github or twitter account herecategoryis one offsharp,datascience,advanceddateis the date of submission in ISO 8601summaryis an optional short summary of the post. It is recommended to add for SEO.perview_imageis an optional image that will be shown on post previews. ideally a 2-by-1 or 3-by-1 image with a width of 1200px. It is recommended to add for SEO.
-
create a
post.ipynbfile that contains your blogpost. This notebook will be parsed and rendered to a html site. do not forget to save the notebook with cell output, as the notebook will not be executed on site generation.
To add a graph post:
-
add a folder with a url-safe name of your post to
/src/graph-gallery -
create a
graph_post_config.mdfile. this file should only create metadata about your post, and must have this structure:--- title: <your post title> author: <your name> author_link: <a link> graph_category: <chart category> date: <YYYY-MM-DD> summary: <post summary> preview_image: images/<your_image_here.png> ---titleis the title of your postauthoris the author of the post (most likely your name)author_linkis a link that will be associated with your name. You can for example link your github or twitter account heregraph_categoryis one ofbasic,distribution,finance,3d,map,special(corresponding to the categories of plotly's docs)dateis the date of submission in ISO 8601summaryis an optional short summary of the post. It is recommended to add for SEO.perview_imageis an optional image that will be shown on post previews. ideally a 2-by-1 or 3-by-1 image with a width of 1200px. It is recommended to add for SEO.
-
create a
<language>.ipynbfile that contains your graph post. This notebook will be parsed and rendered to a html site. Ideally, you provide bothfsharp.ipynbandcsharp.ipynb, but F#-only is okay as well. do not forget to save the notebook with cell output, as the notebook will not be executed on site generation.