‹ BackHN Continuity

Thread

Markdown in /src

154 points · 99 comments · perrygeo

  1. divbzero · · focus · HN ↗
    Instead of the proposed /src/md convention:

      src/
        md/
          README.md          # index of all md, entry point for agents
          TODO.md            # a list of general TODOs open for this module
          OVERVIEW.md        # a technical overview of this module
          features/FEATURE_1.md       # a set of feature-specific documents
          data/DATAMODEL_1.md         # descriptions of data models in the module
          api/API_1.md                # descriptions of APIs the module provides
          infrastructure/INFRASTRUCTURE_1.md   # descriptions of infrastructure used by the module
    
    What if we standardized on README.md in each subdirectory alongside the code?

      src/
        README.md    # entry point for humans and agents
        TODO.md      # list of general TODOs open for this module
        INFRA.md     # descriptions of infrastructure used by the module
        api/
          README.md  # descriptions of APIs the module provides
        models/
          README.md  # descriptions of data models in this module
    
    README.md in each subdirectory seems to align better with OP’s objective “that Markdown should be checked in to /src, next to the code it produces”. It is also a convention already in use in many code repositories.
    1. diegolas · · focus · HN ↗
      i feel like many files with the same name could mess with the context
      1. gianlucabertell · · focus · HN ↗
        think the same! also from tooling perspective.. search README and you get XXXX results. (same happening now with index.tsx..)
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.