Coding Cat is a simple, in-browser platform for doing small Python problems to learn programming.
This repository contains the blog posts available on that site.
Each blog post must be in its own directory, in the blogs subdirectory. The directory name should meaningfully reflect the
problem description, and be named in kebab case.
Each directory must contain the following files to describe the blog post.
post.mdThis is the content of the blog post.meta.jsonThe metadata of the blog post. This is a JSON object with the following keys.title: the title of the blog postauthor: the name of the person who wrote the blog posteditor: (optional) the name of the person/people who edited the blog postblog_slug: a unique ID for identifying the blog post. must be in snake casecategory: the category of the blog post. For now there is the 'meta' and 'technical' categoriesorder: (optional) field describing the order the posts should be in. If it's not there, they will be shown alphabetically
questions.json(optional) An array of questions to check a student's understanding of a postquestion: The text of the questioncode: (optional) A block of code to support the questionoptions: The options for the question's answerscorrect: The correct answer among all the optionsexplanation: (optional) An explanation revealed after an answer is selected
Included in this repo is a build script for compiling the list of blogs into blogs.js,
which is then imported by the main Coding Cat UI.
build-blogcompiles one blog specified as the name of the directory for the blog. This produces ablog.jsonfile in the blog-posts directory.build-allcompiles all blogs, generating ablog.jsonfile in each blog directory.build-blogs-listcompilesblogs.jsin the root directory. This js file imports eachblog.jsonfile for each blog and defines a default export of a list of all the blog objects.