Skip to content

Commit

Permalink
Mark the ArticleExtractor API as @Deprecated. All callers should …
Browse files Browse the repository at this point in the history
…move to the plugin-based API in v4.0+
  • Loading branch information
chimbori committed Jul 16, 2023
1 parent c99aeb1 commit fdabc21
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/kotlin/com/chimbori/crux/articles/Article.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import org.jsoup.nodes.Document
import org.jsoup.nodes.Element

/** Parsed result from a web page. */
@Deprecated("Use [com.chimbori.crux.api.Resource] instead. See README.md for examples.")
public data class Article(
var canonicalUrl: HttpUrl,
var title: String? = null,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@file:Suppress("DEPRECATION")

package com.chimbori.crux.articles

import com.chimbori.crux.common.estimatedReadingTimeMinutes
Expand All @@ -17,7 +19,7 @@ import org.jsoup.Jsoup
import org.jsoup.nodes.Document
import org.jsoup.nodes.Element

@Suppress("unused")
@Deprecated("Use [com.chimbori.crux.plugins.ArticleExtractor] instead. See README.md for examples.")
public class ArticleExtractor
/**
* Create an [ArticleExtractor] from an already-parsed JSoup document, to be used when a
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@file:Suppress("DEPRECATION")

package com.chimbori.crux.articles

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@file:Suppress("DEPRECATION")

package com.chimbori.crux.articles

import com.chimbori.crux.common.fromFile
Expand Down
2 changes: 2 additions & 0 deletions src/test/kotlin/com/chimbori/crux/common/TestHelper.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@file:Suppress("DEPRECATION")

package com.chimbori.crux.common

import com.chimbori.crux.Crux
Expand Down
2 changes: 2 additions & 0 deletions src/test/kotlin/com/chimbori/sample/KotlinPublicAPITest.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@file:Suppress("DEPRECATION")

package com.chimbori.sample

import com.chimbori.crux.Crux
Expand Down

0 comments on commit fdabc21

Please sign in to comment.