mirror of
https://github.com/kennethreitz/instructor.git
synced 2026-06-05 22:50:18 +00:00
doc: update url references
This commit is contained in:
@@ -41,7 +41,7 @@ router.get('/api/:branch/items', async (request) => {
|
||||
.bind(params.branch)
|
||||
.all();
|
||||
|
||||
const url = `https://raw.githubusercontent.com/jxnl/instructor/${params.branch}/mkdocs.yml?raw=true`;
|
||||
const url = `https://raw.githubusercontent.com/instructor-ai/instructor/${params.branch}/mkdocs.yml?raw=true`;
|
||||
const mkdoc_yml = await fetch(url).then((res) => res.text());
|
||||
const mkdocs = YAML.parse(mkdoc_yml);
|
||||
var cookbooks = mkdocs.nav
|
||||
@@ -77,7 +77,7 @@ router.get('/api/:branch/items', async (request) => {
|
||||
router.get('/api/:branch/items/:slug/md', async (request) => {
|
||||
const { params, env } = request;
|
||||
await trackAnalytics(request, env, 'CONTENT_MARKDOWN', params.slug, params.branch);
|
||||
const raw_content = `https://raw.githubusercontent.com/jxnl/instructor/${params.branch}/docs/hub/${params.slug}.md?raw=true`;
|
||||
const raw_content = `https://raw.githubusercontent.com/instructor-ai/instructor/${params.branch}/docs/hub/${params.slug}.md?raw=true`;
|
||||
const content = await fetch(raw_content).then((res) => res.text());
|
||||
|
||||
return new Response(content, {
|
||||
|
||||
@@ -24,10 +24,10 @@ class HubPage(BaseModel):
|
||||
count: int = 0
|
||||
|
||||
def get_doc_url(self) -> str:
|
||||
return f"https://jxnl.github.io/instructor/hub/{self.slug}/"
|
||||
return f"https://python.useinstructor.com/hub/{self.slug}/"
|
||||
|
||||
def get_md_url(self) -> str:
|
||||
return f"https://raw.githubusercontent.com/jxnl/instructor/{self.branch}/docs/hub/{self.slug}.md?raw=true"
|
||||
return f"https://raw.githubusercontent.com/instructor-ai/instructor/{self.branch}/docs/hub/{self.slug}.md?raw=true"
|
||||
|
||||
def render_doc_link(self) -> str:
|
||||
return f"[link={self.get_doc_url()}](doc)[/link]"
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ site_name: Instructor
|
||||
site_author: Jason Liu
|
||||
site_description: A lightweight library for structured outputs with LLMs.
|
||||
repo_name: instructor
|
||||
repo_url: https://github.com/jxnl/instructor/
|
||||
repo_url: https://github.com/instructor-ai/instructor/
|
||||
site_url: https://python.useinstructor.com/
|
||||
edit_uri: edit/main/docs/
|
||||
copyright: Copyright © 2024 Jason Liu
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ authors = ["Jason Liu <jason@jxnl.co>"]
|
||||
license = "MIT"
|
||||
readme = "README.md"
|
||||
packages = [{include = "instructor"}]
|
||||
repository = "https://github.com/jxnl/instructor"
|
||||
repository = "https://github.com/instructor-ai/instructor"
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.10"
|
||||
|
||||
Reference in New Issue
Block a user