Git Product home page Git Product logo

about's Introduction

How to use this style for your own pages

For this I rely on mkdocs static site generator. You can install it using:

pip install mkdocs

You can initialize the mkdocs for a folder as follows:

mkdocs new <folder>

This will create the following file structure:

project
  - docs
    - mkdocs.yaml 
    - index.md

This is a customizable framework that can my modified using styling or using third party community themes. For this project, I am considering using mkdocs material or gitbook themes.

Let's begin with material

pip install mkdocs-material
pip install mkdocs-gitbook # gitbook

You can override the main page with this info

---
hide:
  - navigation
  - title
  - toc
  - footer
  - tags
  - feedback
---

<p align="center">
  <a href="https://squidfunk.github.io/mkdocs-material/">
    <img src="http://www.clipartbest.com/cliparts/nTX/e8x/nTXe8xaTB.jpeg" width="320" alt="Material for MkDocs">
  </a>
</p>
<br/><br/>
<p align="center" style="line-height:2" >
  <strong>
    A 
    <a href="https://material.io/">Material Design</a> 
    theme for 
    <a href="https://www.mkdocs.org/">MkDocs</a>
  </strong>
</p>

The theme palette can be altered as follows:

theme:
  name: material
  features:
    - navigation.top
  palette: 
    - scheme: default
      primary: black
      accent: deep purple
      toggle:
        icon: material/toggle-switch
        name: dark mode
    - scheme: slate
      primary: white
      accent: deep purple
      toggle:
        icon: material/toggle-switch-off-outline 
        name: light mode

Remove the top search bar using plugins: []

And add some extensions to the project as follows:

markdown_extensions:
  - attr_list
  - def_list
  - pymdownx.emoji:
      emoji_generator: !!python/name:materialx.emoji.to_svg
      emoji_index: !!python/name:materialx.emoji.twemoji
  - pymdownx.highlight:
      anchor_linenums: false
  - pymdownx.inlinehilite
  - pymdownx.snippets
  - pymdownx.superfences
  - pymdownx.tabbed:
      alternate_style: true
  - pymdownx.arithmatex:
      generic: true
  
  extra:
  generator: false # To remove the made with Material for MkDocs line from footer.
  social:
    - icon: fontawesome/brands/twitter 
      link: https://twitter.com/<username>
    - icon: fontawesome/brands/kaggle
      link: https://kaggle.com/<username>
    - icon: fontawesome/brands/instagram 
      link: https://instagram.com/<username>

Some extra dependencies could also be injected as follows:

extra_css:
  - stylesheets/extra.css
extra_javascript:
  - javascripts/mathjax.js
  - https://polyfill.io/v3/polyfill.min.js?features=es6
  - https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js

Debugging and running website

mkdocs serve -a 0.0.0.0:1234

about's People

Contributors

thanatoz-1 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.