)]}'
{
  "commit": "64eb014524a0cbfb3ae91c2732af086daa358c77",
  "tree": "1e68b0953fd3d2b0cee95b2f919ca24518924302",
  "parents": [
    "ac297a459f4fee416f98a43fea168313fc11c1a7"
  ],
  "author": {
    "name": "Alex Humesky",
    "email": "ahumesky@google.com",
    "time": "Fri Apr 12 21:50:13 2024 -0400"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Fri Apr 12 21:50:13 2024 -0400"
  },
  "message": "Enable generating a table of contents in Stardoc (#203)\n\nAdds a bool `generate_table_of_contents` to `stardoc()` to enable table of contents. This defaults to False for backwards compatibility. Adds a Label `table_of_contents_template` to `stardoc()` to specify the vm template.\r\n\r\nThe default table of contents template looks like this (from the test):\r\n\r\n\u003e ## Rules\r\n\u003e \r\n\u003e - [my_rule](#my_rule)\r\n\u003e \r\n\u003e ## Providers\r\n\u003e \r\n\u003e - [MyFooInfo](#MyFooInfo)\r\n\u003e - [MyVeryDocumentedInfo](#MyVeryDocumentedInfo)\r\n\u003e \r\n\u003e ## Functions\r\n\u003e \r\n\u003e - [check_sources](#check_sources)\r\n\u003e - [returns_a_thing](#returns_a_thing)\r\n\u003e \r\n\u003e ## Aspects\r\n\u003e \r\n\u003e - [my_aspect](#my_aspect)\r\n\u003e - [other_aspect](#other_aspect)\r\n\u003e \r\n\u003e ## Repository Rules\r\n\u003e \r\n\u003e - [my_repo](#my_repo)\r\n\u003e \r\n\u003e ## Module Extensions\r\n\u003e \r\n\u003e - [my_ext](#my_ext)",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "18bb219b0f3101b52a9b0599134c0b2fc28710c5",
      "old_mode": 33188,
      "old_path": "docs/stardoc_rule.md",
      "new_id": "cf79770f8625a09073c00e0cdd6c14cbf2486b9a",
      "new_mode": 33188,
      "new_path": "docs/stardoc_rule.md"
    },
    {
      "type": "modify",
      "old_id": "39b11df82ab71fd35101b8fcf5f409531c166609",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/skydoc/renderer/RendererMain.java",
      "new_id": "9bf7cf73002bbfa7be00f44b6c88a78730127449",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/skydoc/renderer/RendererMain.java"
    },
    {
      "type": "modify",
      "old_id": "52ed1650a2841525254f37a1e244c4788b0e1cf3",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/skydoc/renderer/RendererOptions.java",
      "new_id": "004c42855680a8a0dd3ac4c1fb9c4944265010c4",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/skydoc/renderer/RendererOptions.java"
    },
    {
      "type": "modify",
      "old_id": "2ff4a4e343dd061dd72b09fc81cd01d3e125859d",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/skydoc/rendering/MarkdownRenderer.java",
      "new_id": "ca07c346466523fd7aca7e66d55202600c934a2a",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/skydoc/rendering/MarkdownRenderer.java"
    },
    {
      "type": "modify",
      "old_id": "16d11223363348c1f06a4335181434447b7533f4",
      "old_mode": 33188,
      "old_path": "stardoc/private/stardoc.bzl",
      "new_id": "11015240c6a65bf0512ec49f34600426ca3f8f11",
      "new_mode": 33188,
      "new_path": "stardoc/private/stardoc.bzl"
    },
    {
      "type": "modify",
      "old_id": "06dbb97aac207d53c017719b0cfa09e792482277",
      "old_mode": 33188,
      "old_path": "stardoc/stardoc.bzl",
      "new_id": "ac312aa0f068336e96927ead42310b452a713e53",
      "new_mode": 33188,
      "new_path": "stardoc/stardoc.bzl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "73d408adcf6aaa79151e595718713517b1909195",
      "new_mode": 33188,
      "new_path": "stardoc/templates/markdown_tables/table_of_contents.vm"
    },
    {
      "type": "modify",
      "old_id": "3c1c2846cea52b7c9568037617f570fbe840d0a2",
      "old_mode": 33188,
      "old_path": "test/BUILD",
      "new_id": "9f151e52a476196e9d010b4dfb670c09b0167538",
      "new_mode": 33188,
      "new_path": "test/BUILD"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "38229b08da031dff27b963eaa1127267e18ae353",
      "new_mode": 33188,
      "new_path": "test/testdata/table_of_contents_test/golden.md"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "5d034b41ad1947171b4e8918b9254bb8451b71f8",
      "new_mode": 33188,
      "new_path": "test/testdata/table_of_contents_test/input.bzl"
    }
  ]
}
