Git Product home page Git Product logo

techpubstyle's Introduction

Tech pub style style guide

A Vale-compatible style for technical writers documenting open-source software and for anyone writing about Open Source.

Checks

The supplied rules perform the following checks:

  • common language usage errors
  • punctuation
  • editorializing
  • wordiness
  • terminology
  • corporate speak
  • inclusive language

Installation on Linux

The following installation procedure has been tested on Linux Mint and openSUSE.

Option 1. Install precompiled binary

  1. Check the available tags at https://github.com/errata-ai/vale/tags
  2. Use wget to download the latest tag, for example:
wget https://github.com/errata-ai/vale/releases/download/v2.20.0/vale_2.20.0_Linux_64-bit.tar.gz
  1. Extract the downloaded archive:
tar xvf vale_2.20.0_Linux_64-bit.tar.gz vale
  1. Move the vale binary to the /usr/local/bin directory:
sudo mv ./vale /usr/local/bin

Instead of /usr/local/bin, you can move the binary to any directory that is in $PATH.

Option 2. Install via Brew

  1. Install Brew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Install Vale:
brew install vale

Install Tech pub style

  1. Create the styles directory: mkdir $HOME/styles
  2. Clone the Git repository: cd $HOME/styles && git clone https://github.com/dmpop/techpubstyle.git

Create configuration file

Create a configuration file in your home directory:

nano $HOME/.vale.ini

Add the following configuration:

StylesPath = styles
MinAlertLevel = suggestion
[asciidoctor]
experimental = YES
[*.{md,txt,adoc}]
BasedOnStyles = techpubstyle

Save the changes.

Add XML support (openSUSE)

  1. Install the libxslt-tools and docbook-xsl-stylesheets packages.
  2. Open the .vale.ini file for editing and update the existing configuration as follows:
StylesPath = styles
MinAlertLevel = suggestion
[asciidoctor]
experimental = YES
[*.xml]
Transform = /usr/share/xml/docbook/stylesheet/suse2022-ns/xhtml/docbook.xsl
BasedOnStyles = techpubstyle
[*.{md,txt,adoc}]
BasedOnStyles = techpubstyle
  1. Save the changes.

Add XML support (Linux Mint)

  1. Install the docbook5-xml and docbook-xsl packages.
  2. Open the .vale.ini file for editing and update the existing configuration as follows:
StylesPath = styles
MinAlertLevel = suggestion
[asciidoctor]
experimental = YES
[*.xml]
Transform = /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl
BasedOnStyles = techpubstyle
[*.{md,txt,adoc}]
BasedOnStyles = techpubstyle
  1. Save the changes.

Add VS Code and VSCodium integration

In VS Code, install the Vale +VS Code extension. In VSCodium, install Vale +VS Code extension.

Source code

In VS Code or VSCodium, choose File > Preferences > Settings and specify the path to the Vale binary (for example, /usr/local/bin/vale) under Vale > Vale CLI: Path.

Updating Tech pub style

Switch to the techpubstyle directory and run the git pull command.

Problems?

Please report bugs and issues in the Issues section.

Contribute

If you've found an error, or you have a suggestion for improvement, open an issue in the Issues section.

To add a new feature or fix issues yourself, proceed as follows.

  1. Fork the project's repository.
  2. Create a feature branch using the git checkout -b new-feature command.
  3. Add your new feature or fix bugs and run the git commit -am 'Add a new feature' command to commit changes.
  4. Push changes using the git push origin new-feature command.
  5. Submit a pull request.

Author

Dmitri Popov [email protected]

License

The GNU General Public License version 3

techpubstyle's People

Watchers

 avatar  avatar

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.