Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: EthicalAds HTML content checks #191

Merged
merged 8 commits into from
Nov 17, 2023
Merged

Conversation

humitos
Copy link
Member

@humitos humitos commented Nov 15, 2023

Initial tests for auto-injected ad placement.

Use the `#ethical-ad-placement` explicit placement on Read the Docs to keep
backward compatibility with current integrations.

Users just need to define a `div` whenever they want in the HTML and style with
the CSS classes they want as follows:

```
<div id="ethical-ad-placement" class="ad-flat"></div>
```

This will tell our EthicalAdsAddon to load the ad in that position.
Note that `data-ea-manual="true"` should not be used on these cases.

Closes readthedocs/meta#132
Initial tests for auto-injected ad placement.
@humitos humitos requested a review from a team as a code owner November 15, 2023 15:38
@humitos humitos requested a review from agjohnson November 15, 2023 15:38
@humitos humitos changed the base branch from main to humitos/ethical-ad-div November 15, 2023 16:00
Base automatically changed from humitos/ethical-ad-div to main November 17, 2023 10:58
We were calling `placement.setAttribute()` on a `null` value :)
@humitos humitos merged commit ae9f929 into main Nov 17, 2023
@humitos humitos deleted the humitos/ethicalads-html-tests branch November 17, 2023 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants