GithubHelp home page GithubHelp logo

surmavagit / bootblog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bootdotdev/blog

0.0 0.0 0.0 106.8 MB

The Boot.dev blog source code and content

Home Page: https://blog.boot.dev

License: Other

Shell 0.52% JavaScript 6.33% Python 12.67% Go 8.05% CSS 37.59% Makefile 0.37% HTML 34.46%

bootblog's Introduction

The Boot.dev Blog

This is the source code and content for the Boot.dev blog, which can be found at https://blog.boot.dev.

Contributing

We would love for you to add your own article, or make improvements to an existing article! You can read the contributing guide here for how to get started.

License

You can read the license here. In short, you're free to copy and edit this blog. That said, all the content in this repository is owned by Boot.dev, and you're not permitted to host or publish it elsewhere. We want you to be able to submit updates and even entire articles if you choose, but be aware that an accepted submission does not give you any ownership over the content in this project.

Quick start development

Make sure you have yarn and the latest version of hugo installed on your local machine.

yarn install
yarn serve

Recommended VS code plugins

  • Spellchecker by Michael Vernier
  • Markdown All in One by Yu Zhang
  • Eslint by Microsoft

Check for broken links

In one terminal start the server on localhost:1313

yarn serve

Then run the check in another terminal:

make buildscripts && ./bin/linkcheck

It will print any issues.

Shortcodes

Use the following scripts to manage global shortcodes.

Build the scripts

make buildscripts

Add a SHORTCODE to all posts at the end of SECTION_NUMBER

./bin/addshorts SHORTCODE SECTION_NUMBER

Remove SHORTCODE from all posts

./bin/rmshorts SHORTCODE

Reset current ctas

./bin/rmshorts cta1
./bin/rmshorts cta2
./bin/rmshorts cta3

./bin/addshorts cta1 2
./bin/addshorts cta2 4
./bin/addshorts cta3 7

Resize images

Place original images go in the raw/ directory.

Create a directory static/img/X where X is the max width of the new images.

yarn image-min

This resizes all the images and places them in the new folder and deletes them from raw/.

The syntax to include them in a post is:

![alt text here](/img/800/technology.png.webp)

Docx to markdown

Add .docx file to docx/ directory.

./scripts/docxmd.sh path_to_docx

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.