-
Notifications
You must be signed in to change notification settings - Fork 30
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
18 changed files
with
1,193 additions
and
65 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,14 @@ | ||
name: Deploy to GitHub Pages | ||
|
||
permissions: | ||
contents: write | ||
pages: write | ||
|
||
on: | ||
push: | ||
branches: [ "main", "master" ] | ||
workflow_dispatch: | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: [uses: fastai/workflows/quarto-ghp@master] |
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,7 @@ | ||
name: CI | ||
on: [workflow_dispatch, pull_request, push] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: [uses: fastai/workflows/nbdev-ci@master] |
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,5 @@ | ||
include settings.ini | ||
include LICENSE | ||
include CONTRIBUTING.md | ||
include README.md | ||
recursive-exclude * __pycache__ |
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 |
---|---|---|
@@ -1,2 +1,106 @@ | ||
# llms-txt | ||
The /llms.txt file, helping language models use your website | ||
|
||
|
||
<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! --> | ||
|
||
This file will become your README and also the index of your | ||
documentation. | ||
|
||
## Developer Guide | ||
|
||
If you are new to using `nbdev` here are some useful pointers to get you | ||
started. | ||
|
||
### Setup | ||
|
||
It can be helpful to have a dedicated environment for development. Here | ||
we are assuming that you have an conda environment file called `env.yml` | ||
named after `llms_txt` i.e.: | ||
|
||
``` yaml | ||
# env.yml | ||
name: llms_txt | ||
|
||
channels: | ||
- fastai | ||
|
||
dependencies: | ||
- fastai::nbdev>=2.3.12 | ||
# - python>=3.11 # specify python version if required | ||
# - dependency 1 | ||
# - dependency 2 | ||
# - pip | ||
# pip: | ||
# - pip dependency 1 | ||
# - pip dependency 2 | ||
``` | ||
|
||
You can then use `conda` or `mamba` (faster at resolving) to create and | ||
update your environment file should your needs change as you work on | ||
`llms_txt` | ||
|
||
``` sh | ||
# create a conda environment for working on llms-txt | ||
$ mamba env create -f env.yml | ||
|
||
# update conda environment | ||
$ mamba env update -n llms_txt --file env.yml | ||
``` | ||
|
||
### Install llms_txt in Development mode | ||
|
||
``` sh | ||
# activate conda environment | ||
$ conda activate llms_txt | ||
|
||
# make sure llms_txt package is installed in development mode | ||
$ pip install -e . | ||
|
||
# make changes under nbs/ directory | ||
# ... | ||
|
||
# compile to have changes apply to llms_txt | ||
$ nbdev_prepare | ||
``` | ||
|
||
## Usage | ||
|
||
### Installation | ||
|
||
Install latest from the GitHub | ||
[repository](https://github.com/AnswerDotAI/llms-txt): | ||
|
||
``` sh | ||
$ pip install git+https://github.com/AnswerDotAI/llms-txt.git | ||
``` | ||
|
||
or from [conda](https://anaconda.org/AnswerDotAI/llms-txt) | ||
|
||
``` sh | ||
$ conda install -c AnswerDotAI llms_txt | ||
``` | ||
|
||
or from [pypi](https://pypi.org/project/llms-txt/) | ||
|
||
``` sh | ||
$ pip install llms_txt | ||
``` | ||
|
||
### Documentation | ||
|
||
Documentation can be found hosted on this GitHub | ||
[repository](https://github.com/AnswerDotAI/llms-txt)’s | ||
[pages](https://AnswerDotAI.github.io/llms-txt/). Additionally you can | ||
find package manager specific guidelines on | ||
[conda](https://anaconda.org/AnswerDotAI/llms-txt) and | ||
[pypi](https://pypi.org/project/llms-txt/) respectively. | ||
|
||
## How to use | ||
|
||
Fill me in please! Don’t forget code examples: | ||
|
||
``` python | ||
1+1 | ||
``` | ||
|
||
2 |
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 @@ | ||
__version__ = "0.0.1" |
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,17 @@ | ||
# Autogenerated by nbdev | ||
|
||
d = { 'settings': { 'branch': 'main', | ||
'doc_baseurl': '/llms-txt', | ||
'doc_host': 'https://AnswerDotAI.github.io', | ||
'git_url': 'https://github.com/AnswerDotAI/llms-txt', | ||
'lib_path': 'llms_txt'}, | ||
'syms': { 'llms_txt.core': { 'llms_txt.core.Doc': ('core.html#doc', 'llms_txt/core.py'), | ||
'llms_txt.core.Section': ('core.html#section', 'llms_txt/core.py'), | ||
'llms_txt.core._opt_re': ('core.html#_opt_re', 'llms_txt/core.py'), | ||
'llms_txt.core._parse_llms_txt': ('core.html#_parse_llms_txt', 'llms_txt/core.py'), | ||
'llms_txt.core._parse_section': ('core.html#_parse_section', 'llms_txt/core.py'), | ||
'llms_txt.core._split_on_h2': ('core.html#_split_on_h2', 'llms_txt/core.py'), | ||
'llms_txt.core.get_sizes': ('core.html#get_sizes', 'llms_txt/core.py'), | ||
'llms_txt.core.llms_txt2ctx': ('core.html#llms_txt2ctx', 'llms_txt/core.py'), | ||
'llms_txt.core.mk_ctx': ('core.html#mk_ctx', 'llms_txt/core.py'), | ||
'llms_txt.core.parse_llms_file': ('core.html#parse_llms_file', 'llms_txt/core.py')}}} |
Oops, something went wrong.