Skip to content

othrif/notes

Repository files navigation

Othmane Rifki's Website

This is Othmane Rifki's collection of personal notes on coding, mathematics, and machine learning. This repository contains the source files for my website, https://othrif.github.io/.

To deploy:

Run

./deploy.sh

Add Jupyter notebook:

hugo new  --kind post post/my-post
cd content/post/my-post/
jupyter notebook
jupyter nbconvert Untitled.ipynb --to markdown --NbConvertApp.output_files_dir=.
cat firstJupyter.md | tee -a index.md

####first time

rm -rf public/
git submodule add -f -b master https://github.com/othrif/othrif.github.io.git public
hugo
cd public/
git add .
git commit -m "Initial commit"
git push -u origin master
hugo
cd public
git add .
git commit -m "Build website"
git push origin master
cd ..

Copy to CERN server:

cp -r /Users/othmanerifki/projects/website/notes/public ~/cernbox/www

Create a new blog post

cd <MY_WEBSITE_FOLDER>
hugo new  --kind post post/my-post
cd <MY_WEBSITE_FOLDER>/content/post/my-post/

Convert notebook to Markdown

jupyter nbconvert Untitled.ipynb --to markdown --NbConvertApp.output_files_dir=.

# Copy the contents of Untitled.md and append it to index.md:
cat Untitled.md | tee -a index.md

# Remove the temporary file:
rm Untitled.md

Lunch server locally:

hugo server

Enter http://localhost:1313 in the browser.

Add academic references:

academic import --bibtex <path_to_your/publications.bib>

Quick Start

  1. Download a theme into the same-named folder. Choose a theme from https://themes.gohugo.io/ or create your own with the "hugo new theme " command.
  2. Perhaps you want to add some content. You can add single files with "hugo new /.".
  3. Start the built-in live server via "hugo server".

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages