Code Monkey home page Code Monkey logo

asciidoc-readme-template's Introduction

About the Project

This repository provides a good foundation for establishing a README, written in AsciiDoc markup. Documents written in AsciiDoc markup can be easily converted to HTML5, PDF, EPUB, and other formats. Its syntax is similar to markdown, and includes extensive features and flexibility which make it suitable for writing high quality documentation.

AsciiDoc is simply plain-text. You can author documents in your favorite text editor of choice, such as Visual Studio Code with a proper extension, or any derivative of VIM. If you’re just getting started with AsciiDoc, you may want to try AsciidocFX, until the markup syntax becomes second nature to you.

ℹ️
This README template does not include dependencies on features, such as Shields.io, which require the repository to be a public repository.

Built With

  • Asciidoctor - a fast text processor and publishing toolchain for converting AsciiDoc content to other formats.

  • AsciidocFX - a book / document editor to build PDF, Epub, Mobi and HTML books, documents, and slides.

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Prerequisites

Select the prequisites procedure which aligns with your operating system of choice.

Installing Git on Linux

Determine on which Linux distribution your system is ased on. See List of Linux distributions — Wikipedia — for a list. Most Linux systems — including Ubuntu — are Debian-based.

Debian-based linux systems

Open a terminal window. Copy & paste the following into the terminal window and hit Return. You may be prompted to enter your password.

sudo apt update
sudo apt upgrade
sudo apt install git

You can use Git now.

Red Hat-based linux systems

Open a terminal. Copy & paste the following into the terminal window and hit Return. You may be prompted to enter your password.

sudo yum upgrade
sudo yum install git

You can use Git now.

Installing Git on macOS

Step 1 — Install Homebrew
ℹ️
Homebrew […​] simplifies the installation of software on the macOS operating system.

Copy & paste the following into the terminal window and hit Return.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

You will be offered to install the Command Line Developer Tools from Apple. Confirm by clicking Install. After the installation finished, continue installing Homebrew by hitting Return again.

Step 2 — Install Git

Copy & paste the following into the terminal window and hit Return.

brew install git
ℹ️
If you prefer the version of git included with Apple’s Command Line Tools for Xcode, you can choose to skip installing git using Homebrew.

You can use Git now.

Installing Git on Windows

Step 1 — Install Chocolatey
ℹ️
Chocolatey is a software management for Windows. It brings the concepts of true package management to allow you to version things, manage dependencies and installation order, better inventory management, and other features.

Copy & paste the following into the PowerShell window and hit Return.

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Wait a few seconds for the command to complete. If you don’t see any errors, you are ready to use Chocolatey.

Step 2 — Install Git

Copy & paste the following into the PowerShell window and hit Return.

choco install -y git

You can now use Git via launching the Git BASH terminal for Windows.

Installation

This repository is published as a template repository, hosted on GitHub. The branches within this repository include a boilerplate README, as well as a placeholder README, for your convenience. To ensure you repository includes these convenience branches, you’ll need create your repository from within the GitHub website.

💡
While it is possible to create a repository from a template using the GitHub CLI, it currently does not support including all branches. For more information, see gh repo create in the GitHub CLI documentation.
  1. On GitHub, navigate to the main page of this repository.

  2. Above the file list, click Use this template.

    Use this template button
  3. Use the Owner drop-down menu, and select the account you want to own the repository.

    Owner drop-down menu
  4. Type a name for your repository, and an optional description.

    Create repository field
  5. Choose a repository visibility. For more information, see About repository visibility.

    Radio buttons to select repository visibility
  6. To include the directory structure and files from all branches in the template, YOU MUST select Include all branches.

    Include all branches checkbox
  7. Click Create repository from template.

  8. On GitHub, navigate to the main page of the repository.

  9. Above the list of files, click Download Code.

    Code
  10. To clone the repository using HTTPS, under "Clone with HTTPS", click Copy to copy the URL.

    Copy URL
  11. Launch your terminal.

  12. Change the current working directory to the location where you want the cloned directory.

  13. Type `git clone `, and then paste the URL you copied earlier

    git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
  14. Press Enter to create your local clone.

    git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
    > Cloning into `Spoon-Knife`...
    > remote: Counting objects: 10, done.
    > remote: Compressing objects: 100% (8/8), done.
    > remove: Total 10 (delta 1), reused 10 (delta 1)
    > Unpacking objects: 100% (10/10), done.

Usage

Once a new repository is created from this template, the boilerplate readme is displayed on the main branch. This repository also includes the following two branches for convenience.

  • docs/readme-boilerplate

    • This branch includes an example of what a typical readme might look like.

    • This has already been merged into main, and is what you’re reading now.

    • You’ll likely want to create a branch from this so you can author your own custom readme.

  • docs/readme-placeholder

    • This branch includes an example of what a placeholder readme might look like.

    • A placeholder readme is usually displayed until the actual readme is ready to be published.

    • The use of a placeholder readme is a good practice to provide visitors to your repsository with a hint of what’s to come.

Placeholder Readme

  1. Launch your terminal.

  2. Change the current working directory to the location where you already cloned the repository.

  3. Copy & paste the following into the terminal window and hit Return.

    git checkout docs/readme-placeholder
    git checkout main
    git rm readme.adoc
    git clean -f .
    git commit -m 'DOCS(readme):  purge boilerplate'
    git merge docs/readme-placeholder -m 'DOCS(readme):  stage placeholder' --allow-unrelated-histories
  4. You can now edit the readme.adoc file to serve as a placeholder until the actual readme is ready to be published.

    = <Enter the Project Title>
    :doctype: article
    :description: <Enter a short description of the project>
    :license-type: <enter license type>
    :author: Author Name
    :email: [email protected]
    :revnumber: v0.1
    :revdate: 2021-01-01
    💡
    The example listed above is only a starting point for customizing the readme. Take a close look at the lines within to ensure you replace all the placeholder values. For example, don’t forget to modify the HTML code near the top of the readme which is used when displaying on GitHub.
  5. Once your edits are complete, commit your changes and push to remote.

    git add .
    git commit -m 'DOCS(readme):  set placeholder'
    git push

Boilerplate Readme

  1. Launch your terminal.

  2. Change the current working directory to the location where you already cloned the repository.

  3. Copy & paste the following into the terminal window and hit Return.

    git checkout docs/readme-boilerplate
    git checkout -b docs/readme-draft
  4. You can now edit the readme.adoc file, customizing it for your specific project.

  5. Once the readme is ready to be published, copy & paste the following into the terminal window and hit Return.

    git add .
    git commit -m 'DOCS(readme):  author draft'
    git push -u origin docs/readme-draft
    git checkout main
    git rm readme.adoc
    git clean -f .
    git commit -m 'DOCS(readme):  purge placeholder'
    git merge docs/readme-draft -m 'DOCS(readme):  publish draft' --allow-unrelated-histories
    git push

For more AsciiDoc examples, please refer to the Documentation.

FAQ

  1. Why this approach?

    Because…​

  2. Could this be done better?

    Certainly…​

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

  1. Clone repo and create a new branch: $ git checkout https://github.com/JoeArauzo/AsciiDoc-README-Template -b name_for_new_branch.

  2. Make changes and test.

  3. Submit Pull Request with comprehensive description of changes.

Change Log

See CHANGELOG.

License

Distributed under the <enter license type> License. See LICENSE for more information.

Acknowledgements

asciidoc-readme-template's People

Contributors

joearauzo avatar

Watchers

James Cloos 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.