forked from tachiyomiorg/extensions-lib
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add automatically-generated documentation (#6)
- Loading branch information
1 parent
a2afb04
commit ea3ba77
Showing
15 changed files
with
357 additions
and
28 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Generate docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- '**.md' | ||
- '**.yaml' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 11 | ||
distribution: adopt | ||
|
||
- name: Build documentation | ||
run: ./gradlew :library:dokkaHtml | ||
|
||
- name: Publish documentation | ||
uses: JamesIves/github-pages-deploy-action@releases/v4 | ||
with: | ||
BRANCH: gh-pages | ||
FOLDER: library/build/docs |
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,30 @@ | ||
# Module extensions-lib | ||
The Aniyomi API exposed to extensions via stubs. | ||
|
||
# Package androidx.preference | ||
Android preferences classes exposed to extensions. | ||
|
||
## NOTE | ||
Not all classes from [*androidx.preference*](https://developer.android.com/reference/androidx/preference/package-summary) package | ||
were implemented as stubs, so if you need to use a non-implemented class, you must add the following into the extension's build.gradle file: | ||
```kotlin | ||
dependencies { | ||
compileOnly("androidx.preference:preference-ktx:1.2.0") | ||
} | ||
``` | ||
|
||
# Package eu.kanade.tachiyomi.animesource | ||
Classes and interfaces for more complex extensions, like ones with multiple sources or user preferences. | ||
|
||
# Package eu.kanade.tachiyomi.animesource.model | ||
Required data classes to interact with Aniyomi. | ||
|
||
# Package eu.kanade.tachiyomi.animesource.online | ||
Single-source creation classes, sufficient to most extensions. | ||
|
||
# Package eu.kanade.tachiyomi.network | ||
Useful methods for creating http requests and manipulate responses. | ||
|
||
# Package eu.kanade.tachiyomi.network.interceptor | ||
Useful methods to slow down http requests and prevent IP-ban or accidental DDoS. | ||
|
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
25 changes: 24 additions & 1 deletion
25
library/src/main/java/eu/kanade/tachiyomi/animesource/AnimeSourceFactory.kt
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
Oops, something went wrong.