GitbookIO / GitbookIO/integrations

feat: edit HTML source & Google AdSense

Open
#183 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

scope-script-injection
Dominant language
TypeScript
Stars
131
Forks
96
Avg merge
7h 8m
Merged PRs (30d)
31

Description

Is there any way we could use integrations to edit the source code and add, for example, blocks in <head></head>, add <script> tags etc. ?

I'm managing an free and open-source project on GitBook, and for that project to live on and keep on evolving, I'd need to have Google AdSense linked to it, so that it stays free for all, but generating revenue that would allow for re-investing for instance.
AdSense can be integrated in a website by adding a <script> tag within the <header></header> block (https://support.google.com/adsense/answer/7584263)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository files, tests, or integration entry points. Start by locating where GitBook HTML is assembled and how integrations can modify it, then clarify the supported scope and safety requirements for adding content inside or

; done should include a documented, tested way to add the requested AdSense script.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.