Support Center
v1.0
Features
Comments
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
GitHub Code
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
You can easily embed code directly from a GitHub repository into DeveloperHub. This functionality ensures that the code in your documentation remains synchronized with any modifications made in the repository.
To create GitHub Code block:
- Type
/
- Select GitHub Code
. - Paste in the box the URL of the GitHub file, for example:
https://github.com/torvalds/linux/blob/master/kernel/signal.c.
You can also only embed a few lines by selecting the lines on GitHub, such a URL would show: https://github.com/torvalds/linux/blob/master/kernel/signal.c#L15-L29.
The file selected will be rendered as:
- Markdown if the file name ends in
.md. - Jupyter notebook if the file name ends in
.ipynb. - Raw file otherwise.
Embedding is powered by https://emgithub.com/. You can change the code theme using advanced settings by modifying code.githubTheme.
Example GitHub Code
Source: https://github.com/torvalds/linux/blob/master/kernel/signal.c#L152-L170.
case 1: ready = signal->sig[0] &~ blocked->sig[0]; } return ready != 0; } #define PENDING(p,b) has_pending_signals(&(p)->signal, (b)) static bool recalc_sigpending_tsk(struct task_struct *t) { if ((t->jobctl & (JOBCTL_PENDING_MASK | JOBCTL_TRAP_FREEZE)) || PENDING(&t->pending, &t->blocked) || PENDING(&t->signal->shared_pending, &t->blocked) || cgroup_task_frozen(t)) { set_tsk_thread_flag(t, TIF_SIGPENDING); return true; } /* * We must never clear the flag in another thread, or in current
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on May 4, 2025
Was this page helpful?
Next to read:
Index ListDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message