Skip to content

test-IO/cirro-guides

Repository files navigation

Logo

Cirro Guides

GitHub Workflow Deploy Status GitHub Workflow Build Status GitHub Workflow Lint Status

Live website at: https://guides.cirro.io

Cirro Guides for anyone - business or developer - to learn about Cirro and how to use it. This is a Next.js project using Tailwind CSS and Markdoc.

Contributing

Update the change log

When you make changes to the Cirro Guides, please update the change log list in the src/pages/index.md file. Add a new entry at the top of the list with the date and a brief description of the changes you made.

Writing Content

To write content for the Cirro Guides, you need to have a basic understanding of Markdown (more precisely Markdoc) and Git. If you are not familiar with these, please read the following guides:

You will find all the content in the src folder. The content is written in Markdown and is organized in folders and files. The folder structure is as follows:

├── src
│   ├── pages   # Markdown files for the pages
│   ├── images  # Images for the pages
│   ├── data    # Sidebar navigation links

If you want to embed code snippets, you can use the following syntax:

{% code language="ruby" showLineNumbers=true %}
```
x = 7.days.ago
```
{% /code %}

All pages by default show a table of contents on the right. You can disable this by adding hideTableOfContents: true to the frontmatter of the page:

---
title: "Page Title"
hideTableOfContents: true
---

This will expand the content to the full width of the page.


Writing Code

To contribute to the Cirro Guides application (this repository), you need to have a basic understanding of JavaScript (Next.js), Markdoc, TailwindCSS, and Yarn. Git(Hub) proficiency is presumed. If you are not familiar with these, please read the following guides:

To get started, first run bin/setup. This will install all dependencies and set up the project. Then run yarn dev to start the development server. You can now access the application at http://localhost:3000. To run the linter, run bin/lint. This requires markdownlint to be installed. To install it via Homebrew, run brew install markdownlint-cli.

All the commands that you can use yarn dev runs the development server on localhost:3000 without the need to compile yarn build compiles the application for production use, must be used before yarn start yarn start starts a production server with the compiled application, available on your machine's public IP yarn lint runs the bin/lint that will check and fix code style issues(if any, changes can be seen with git status) yarn lint:next runs next lint to check for linting issues in the codebase yarn lint:markdown runs markdownlint to check for linting issues in markdown files yarn format lists files that are not formatted according to Prettier rules yarn format:check checks formatting without making changes (useful for CI) yarn format:fix automatically fixes formatting issues

Search

The search is powered by Algolia. The search index is updated by running a crawler on the deployed guides. This crawler is Python based and lives in its own (private) repository. All instructions on how to run the crawler can be found in that repositories README.

JavaScript

Authors

👤 Jan Schwenzien

Contributors 7