Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

servicemeshinterface/smi-spec.io

Repository files navigation

⚠️ This project is ARCHIVED. Learn more

A simple website for the SMI specification - smi-spec.io

Editing Content

smi-spec.io is a static site. The landing page content can be edited at themes/smi/layouts/index.html, and the rest under /content. Post, tag, and category taxonomy is available in Hugo should we want to expand in the future.

How to Add a Blog Post

If you'd like to submit an SMI-related blog post to the site, please follow these guidelines:

  1. Blog posts should be useful and informative for readers, who won't need to buy specific commercial offerings in order to learn something
  2. Blog posts do not need to exclusively cover open source software, but also should not be primarily product pitches
  3. Blog posts should disclose and link to the employer of the person writing the blog post

Blog posts are created via pull requests, and should be approved by two reviewers (at least one of whom should work for a different employer than the blog post submitter). You can test locally with hugo and/or see the preview after submitting the pull request.

Add a new file to the content/blog/ directory whose name is the published date and the title. The files must be markdown formatted. See the existing titles for examples of the format. Add the header meta-data to the file using this format (note the permalink structure). Recommended but optional fields are authorname which should be name(s); these are displayed verbatim. authorlink is the link used by authorname.

---
title: "A Fancy Title"
slug: "fancy-title"
authorname: "Captain Awesome"
authorlink: "https://example.com"
date: "2020-03-15T09:00:00+08:00"
---

Add the content below the --- as Markdown. The title does not need to be included in this section. Any images should be placed in the /content/blog/images/ directory. Images should be losslessly compressed to reduce their size. Tools, such as ImageOptim, can be used.

To summarize the content on the blog index page, insert a <!--more--> break in your markdown. This will truncate the content with a Read More link.

How to Add Your Logo

To add the logo of your company or organization to the landing page:

  1. Add your logo to the themes/smi/static/img/logos directory and name it logo-*.png where * is a slug for your org name (e.g. logo-acme.png).
  2. Add an entry to either the ecosystem or partners list in data/logos.yaml. Include the following information: an org title, a website URL, and the filename of the logo.

Site Development

Notes

  • built with the Hugo static site generator
  • custom smi theme uses Paper as a base, with Foundation on top and the SMI custom sass
  • deployed to Netlify via merges to main. (@flynnduism, @lachie83 and @bridgetkromhout are admins)
  • metrics tracked via Google Analytics

Install dependencies:

Run the site:

// rebuild the site (to compile latest css/js)
hugo

// or serve the site for local dev
hugo serve

Deploying the site:

The site auto deploys the main branch via Netlify. Once pull requests are merged the changes will appear at smi-spec.io after a couple of minutes. Check the logs for details.

Netlify Status

hugo serve will run the site locally at localhost:1313

Code of Conduct

Service Mesh Interface follows the CNCF Code of Conduct.