Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save thuongtin/8a99a74f544b4b8b7756a385b1fe2750 to your computer and use it in GitHub Desktop.

Select an option

Save thuongtin/8a99a74f544b4b8b7756a385b1fe2750 to your computer and use it in GitHub Desktop.
{
"schemaVersion": "0.1.0",
"name": "Code Wiki",
"behavior": "create",
"noteNameFormat": "{{title|replace:\"/\\s*\\x7c\\s*Code Wiki\\s*$/\":\"\"|replace:\"/\\//\":\" - \"}}",
"path": "raw/Clippings/CodeWiki",
"noteContentFormat": "# {{selector:h1 > span > span|first}}\n\n> {{description}}\n\n**Repo**: [{{selector:h1 > span > span|first}}]({{selector:h1 a.github-icon-link?href|first}})\n\n---\n\n## Architecture Diagrams\n\n{{selector:svg.svg-diagram image?href|image|join:\"\\n\\n\"}}\n\n---\n\n## Documentation\n\n{{selectorHtml:div.body-content|first|markdown|replace:\"/zoom_in/g\":\"\"}}",
"properties": [
{
"name": "title",
"value": "{{title|replace:\"/\\s*\\x7c\\s*Code Wiki\\s*$/\":\"\"}}",
"type": "text"
},
{
"name": "repository",
"value": "{{selector:h1 > span > span|first}}",
"type": "text"
},
{
"name": "source",
"value": "{{url}}",
"type": "text"
},
{
"name": "github",
"value": "{{selector:h1 a.github-icon-link?href|first}}",
"type": "text"
},
{
"name": "author",
"value": "{{selector:h1 > span > span|first|split:\"/\"|first|wikilink}}",
"type": "multitext"
},
{
"name": "created",
"value": "{{date}}",
"type": "date"
},
{
"name": "description",
"value": "{{description}}",
"type": "text"
},
{
"name": "tags",
"value": "clippings/codewiki",
"type": "multitext"
}
],
"triggers": [
"/^https:\\/\\/codewiki\\.google\\/github\\.com\\//"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment