Giter Club home page Giter Club logo

Comments (5)

aurerua avatar aurerua commented on May 22, 2024 1

@bcolferzd
I have tried it and it did not work.

Steps taken:

  1. Check that the .adr-dir at the root of the project points to doc/architecture/decisions.
  2. Save a template.md file in doc/architecture/decisions/ that contains the default template + one section (called 'More' in this example below):
# NUMBER. TITLE

Date: DATE

## Status

STATUS

## Context

The issue motivating this decision, and any context that influences or constrains the decision.

## Decision

The change that we're proposing or have agreed to implement.

## Consequences

What becomes easier or more difficult to do and any risks introduced by the change that will need to be mitigated.

## More

Some text.
  1. run adr new test record.
  2. it opens the default template, not the one I defined.

from adr-tools.

npryce avatar npryce commented on May 22, 2024

The adr-config script is not intended for users but for downstream packaging projects that package the application for various software distribution channels (Homebrew, APT, RPM and so forth).

If you want a per-project template, create a file named template.md in the ADR directory.

If you want the ADR directory to be at a different location, pass the directory you want to the adr init command.

from adr-tools.

bcolferzd avatar bcolferzd commented on May 22, 2024

If I am working with multiple teams each with their own template. We think it would be valuable for the project to define the template in the project repository.

from adr-tools.

npryce avatar npryce commented on May 22, 2024

@bcolferzd you can do that, as described in the first comment

from adr-tools.

cmygray avatar cmygray commented on May 22, 2024

@aurerua

A template file should be placed in ADR_DIR/templates/ not in ADR_DIR/.
So the correct path is doc/architecture/decisions/templates/template.md

source code:

## If the ADR directory contains a file `templates/template.md`, this is used as

from adr-tools.

Related Issues (20)

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.