# Technical Notes

## Configuration

* Maxheight feature, where scrolling happens

## Copy Gists

Copy feature from raw.&#x20;

## Styling Gists

Custom themes&#x20;

{% hint style="danger" %}
These are experimental approaches.
{% endhint %}

Gists are embedded using a JS script which generates the formatted Gist content. It is not IFRAME'd which means it can be accessed directly via CSS.

However it is also undocumented styling.

<https://codersblock.com/blog/customizing-github-gists/>

Themes and styling;

<https://github.com/StylishThemes/GitHub-Dark/blob/master/src/themes/github/one-dark.css>

## Themes

<https://danielbernal.co/styling-gist-embeds-with-css/>

<https://stylishthemes.github.io/GitHub-Dark/>

<https://github.com/StylishThemes>

<https://github.com/StylishThemes/GitHub-Dark#available-syntax-highlighting-themes-demo>

## Raw Retrieve & Format

Raw retrieval;&#x20;

```
https://gist.github.com/raw/[ID]/[REVISION]/[FILE]
```

or

```
https://gist.githubusercontent.com/raw/[ID]/[REVISION]/[FILE]
```

`[ID]` is necessary\
`[REVISION]` can be omitted to get the latest revision\
`[FILE]` can be omitted to get the first file

<https://gist.github.com/atenni/5604615>

{% embed url="<https://gist.githubusercontent.com/memetican/ca27982d01fbe65127da7e22104fab71/raw>" %}

Or it can be retrieved via GitHub's Gist API.&#x20;

#### To get Gist Data;

<https://api.github.com/gists/8a6a3c508b7c71deb4070d3314900b1f>

{% embed url="<https://gist.github.com/atenni/5604615>" %}

<https://raw.githack.com/>

<https://docsify.js.org/#/embed-files?id=embed-a-gist>

<https://stackoverflow.com/questions/46073096/is-there-a-permalink-to-the-latest-version-of-gist-files>

<https://stackoverflow.com/questions/16589511/how-do-i-get-the-raw-version-of-a-gist-from-github>

####


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://attr.sygnal.com/sa5-richtext/github-gists/technical-notes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
