Skip to content

LiveWyer's editorial styles for content writing

License

Notifications You must be signed in to change notification settings

livewyer-ops/vale-packages

Repository files navigation

LiveWyer Banner

LiveWyer Website badge Twitter badge LinkedIn badge

Vale Packages

Overview

We have adopted Vale to improve the quality and consistency of our written content across the company. This repository contains custom Vale packages designed to enforce style guidelines and maintain clear, consistent writing. In this repository you will find all the necessary resources to use them in your workflow.

You can find more information about Vale at vale.sh.

Packages

All available packages can be found in the packages directory.

This repository contains three packages, each with its own functionality and style:

  • general: used as a foundational package for github and website packages, it enforces company-wide style and vocabulary.
  • github: used for documentation stored in GitHub, it applies a formal style and GitHub vocabulary.
  • website: used for LiveWyer websites, applies a formal style for website content and a less formal style for blog posts, includes website vocabulary.

The table below displays the enabled and disabled styles in our packages. For more details about the styles used, please refer to the official Package Hub.

Styles General Github Website
Vale
Microsoft ✅/❌
alex
Readability
Joblint
LiveWyer
write-good ✅/❌
proselint ✅/❌

Note: Combination of ✅ and ❌ marks indicates that the style is enabled in the package but applied only to specific content.

Guide

How to use a package

To use this package:

  • Place the files from the usage directory in the root of your repository.
  • Replace <package> placeholder in the .vale.ini file with the correct name: website or github. Refer to the working-example.vale.ini file to make sure you updated it correctly.
  • Execute the respective commands as commented in the usage/.vale.ini file.

Contributing

We value your feedback and suggestions! If you have any ideas or want to report issues, please create an issue. Additionally, you can submit your contributions by opening a pull request.

How to update a package

Prerequisites:

  • Permissions to upload release assets in vale-packages repository
  • zip CLI or any other tool that allows you to create a zip archive
  • gh CLI

To update these packages, start by updating files in the respective directories. Once you are satisfied with the package content:

  • Create a Pull Request with your changes and assign the respective label to it, so it can be released. Refer to the Releases section for more details.
  • Merge a Pull Request and wait for the new release to be created.
  • Create and upload zip archives using the following command:
# Replace <tag> value with the tag of your release
export RELEASE_TAG=<tag>

cd packages

# Create zip archives
zip -r general.zip general
zip -r website.zip website
zip -r github.zip github

# Upload zip archives to a GitHub Release
gh release upload $RELEASE_TAG general.zip website.zip github.zip --clobber

# Remove unneeded files
rm -rf general.zip website.zip github.zip

cd ../

Note: Once you have finished, please ensure to update the release tag in github/.vale.ini, website/.vale.ini and usage/.vale.ini to the one you just created.

Releases

The releases in this repository are managed using the Auto Release Pipeline. This pipeline automatically generates GitHub tags, releases, and changelog based on the labels of your Pull Requests (PRs). To include your PR in an upcoming release, make sure to add the appropriate labels. If you want to initiate a new release, add the release label to your PR. For detailed information about the labels and the tool itself, refer to the official documentation of the Auto tool.

Before committing to this repository, familiarize yourself with the auto Configuration File.

Markdown Lint

The markdown lint in this repositry is managed using the Markdown Lint Pipeline. This pipeline automatically lints md files using markdownlint CLI.

Before committing to this repository, familiarize yourself with the markdownlint Configuration File.


Copyright © 2024 LiveWyer, Licensed under the MIT License; you may not use this file except in compliance with the License.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.