-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
111 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
/node_modules/ | ||
/npm-debug.log | ||
/var/ | ||
/www/ |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
body { | ||
--md-code-font-family: ui-monospace, monospace; | ||
--md-text-font-family: ui-sans-serif, sans-serif; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ or `Author.email` set to `"[email protected]"`. Populate all o | |
The Akismet API will always return a `CheckResult.spam` response to a valid request with one of those values. | ||
If you receive anything else, something is wrong in your client, data, or communications. | ||
|
||
```js | ||
``` js | ||
import console from "node:console"; | ||
import {Author, Blog, Client, Comment} from "@cedx/akismet"; | ||
|
||
|
@@ -34,7 +34,7 @@ and all other required fields populated with typical values. | |
|
||
The Akismet API will always return a `CheckResult.ham` response. Any other response indicates a data or communication problem. | ||
|
||
```js | ||
``` js | ||
import console from "node:console"; | ||
import {Author, AuthorRole, Blog, Client, Comment} from "@cedx/akismet"; | ||
|
||
|
@@ -58,7 +58,7 @@ Enable the `Client.isTest` option in your tests. | |
That will tell Akismet not to change its behaviour based on those API calls: they will have no training effect. | ||
That means your tests will be somewhat repeatable, in the sense that one test won't influence subsequent calls. | ||
|
||
```js | ||
``` js | ||
import {Author, Blog, Client, Comment} from "@cedx/akismet"; | ||
|
||
const blog = new Blog({url: "https://www.yourblog.com"}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
site_name: Akismet for JS | ||
site_description: > | ||
Prevent comment spam using the Akismet service, in JavaScript. | ||
Add Akismet to your JavaScript applications so you don't have to worry about spam again. | ||
site_author: Cédric Belin - [email protected] | ||
site_url: https://docs.belin.io/akismet.js | ||
|
||
docs_dir: ../docs | ||
site_dir: ../www | ||
|
||
edit_uri: edit/main/docs/ | ||
repo_name: cedx/akismet.js | ||
repo_url: https://github.com/cedx/akismet.js | ||
|
||
copyright: Copyright © Cédric Belin | ||
extra: | ||
generator: false | ||
social: | ||
- icon: fontawesome/solid/globe | ||
link: https://belin.io | ||
name: Belin.io | ||
- icon: fontawesome/brands/github | ||
link: https://github.com/cedx | ||
name: GitHub | ||
- icon: fontawesome/brands/linkedin | ||
link: https://linkedin.com/in/cedxbelin | ||
name: LinkedIn | ||
- icon: fontawesome/brands/mastodon | ||
link: https://mastodon.social/@cedx | ||
name: Mastodon | ||
extra_css: | ||
- styles.css | ||
|
||
markdown_extensions: | ||
- admonition | ||
- pymdownx.highlight | ||
- pymdownx.inlinehilite | ||
- pymdownx.superfences | ||
|
||
nav: | ||
- Home: index.md | ||
- Installation: installation.md | ||
- Usage: | ||
- Key verification: usage/verify_key.md | ||
- Comment check: usage/check_comment.md | ||
- Submit spam: usage/submit_spam.md | ||
- Submit ham: usage/submit_ham.md | ||
- Further reading: | ||
- Testing: testing.md | ||
- API reference: https://docs.belin.io/akismet.js/api | ||
- About: | ||
- Changelog: changelog.md | ||
- License: license.md | ||
|
||
plugins: | ||
- git-revision-date-localized | ||
- search | ||
|
||
theme: | ||
favicon: favicon.svg | ||
features: | ||
- content.action.edit | ||
- content.action.view | ||
- content.code.copy | ||
- content.tooltips | ||
- navigation.instant | ||
- navigation.instant.progress | ||
- navigation.sections | ||
- navigation.top | ||
font: false | ||
logo: favicon.svg | ||
name: material | ||
palette: | ||
accent: yellow | ||
primary: yellow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters