Skip to content

Commit

Permalink
Merge pull request #10 from premAI-io/main
Browse files Browse the repository at this point in the history
Merge from main
  • Loading branch information
Anindyadeep authored Feb 9, 2024
2 parents c7545ff + dbb2b4b commit 6121374
Show file tree
Hide file tree
Showing 16 changed files with 308 additions and 250 deletions.
23 changes: 2 additions & 21 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v4
with: {fetch-depth: 0}
- uses: actions/setup-python@v4
with: {python-version: '3.x'}
with: {python-version: '3.11'}
- run: pip install -r requirements.txt pyyaml
- name: check CITATION.cff & .zenodo.json
run: |
Expand All @@ -39,16 +39,13 @@ jobs:
assert cff['url'] == zen['related_identifiers'][0]['identifier']
assert cff['keywords'] == zen['keywords']
EOF
- name: linkcheck
# https://jupyterbook.org/en/stable/reference/cli.html
run: jupyter-book build --builder linkcheck --warningiserror --nitpick --keep-going .
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: {fetch-depth: 0}
- uses: actions/setup-python@v4
with: {python-version: '3.x'}
with: {python-version: '3.11'}
- id: pages
uses: actions/configure-pages@v3
- run: pip install -r requirements.txt
Expand All @@ -60,21 +57,6 @@ jobs:
jupyter-book build --builder dirhtml --warningiserror --nitpick --keep-going .
# fix https://github.com/executablebooks/jupyter-book/issues/2066
sed -ri 's#(.*link rel="canonical" href=".*)\.html(".*)#\1/\2#' _build/dirhtml/*/index.html
jupyter-book build --builder latex --warningiserror --nitpick --keep-going .
cd _build/latex
# fix contrib.rocks
mv state-of-open-source-ai contrib-rocks.svg
convert contrib-rocks.svg contrib-rocks.png || :
sed -ri 's/(.*includegraphics\{\{)state-of-open-source-ai(\}\}.*)/\1contrib-rocks.png\2/g' book.tex
# fix undefined in FreeFont
sed -ri \
-e 's/[🆕🌈🎉💪💬💻📝📥🔠🔌🛠␂↔️⚙️]//g' \
-e 's/🔴/☒/g' \
-e 's/🟡/☐/g' \
-e 's/🟢/☑/g' \
book.tex
# insert PDF cover
curl -fsSLO https://static.premai.io/book/cover.pdf
- uses: xu-cheng/latex-action@v3
with:
working_directory: _build/latex
Expand All @@ -88,7 +70,6 @@ jobs:
run: |
mkdir _site
mv _build/dirhtml _site/$SITE_PREFIX
mv _build/latex/book.pdf _site/$SITE_PREFIX.pdf
sed "s#DESTINATION#${{ steps.pages.outputs.base_url }}/$SITE_PREFIX#g" .redirect-template.html > _site/index.html
- uses: actions/upload-pages-artifact@v2
deploy:
Expand Down
109 changes: 109 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,112 @@ __pycache__/
# jupyter-book
/_build/
/conf.py
.vercel

### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# AWS User-specific
.idea/**/aws.xml

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# SonarLint plugin
.idea/sonarlint/

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### macOS template
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 33 additions & 27 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ html:
favicon: assets/favicon.ico
use_edit_page_button: true
use_repository_button: true
announcement: >
<a href="https://www.premai.io/home">Prem App</a> |
<a href="https://dev.premai.io">Developer Portal</a> |
<a href="https://registry.premai.io">Registry</a>
announcement: |
<a target="_blank" href="https://blog.premai.io/announcing-our-startup-grants-program/">
We Launched a Generative AI Startup Grant Program, Apply Now!
</a>
comments:
utterances:
issue-term: pathname
Expand Down Expand Up @@ -58,31 +58,35 @@ parse:
{{ '```{committers} ' + env.docname + '.md\n```' }}
<div id="email-modal" class="modal">
<iframe name="mailchimp-result" style="display: none;"></iframe>
<form
action="https://premai.us21.list-manage.com/subscribe/post?u=76d4e3f9cb2c0f0108fb2da88&amp;id=2c17a51111&amp;f_id=0014ede6f0"
method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="modal-content"
target="mailchimp-result" novalidate="">
<img src="https://static.premai.io/book/book-cover.jpg" alt="book cover" />
<div id="grant-modal" class="modal">
<div class="modal-content">
<div class="header">
<h1>Apply for our a Generative AI Startup Program</h1>
<button class="close" onclick="modalButtonClose()">
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M6.85632 5.64645L6.50277 6L6.85632 6.35355L11.3815 10.8787C11.4448 10.9455 11.4798 11.0343 11.479 11.1264C11.4781 11.2197 11.4407 11.3089
11.3748 11.3748C11.3089 11.4407 11.2197 11.4781 11.1264 11.479C11.0343 11.4798 10.9455 11.4448 10.8787 11.3815L6.35355 6.85632L6 6.50277L5.64645 6.85632L1.11754
11.3852L1.11749 11.3852L1.11145 11.3914C1.07864 11.4254 1.0394 11.4525 0.996011 11.4711C0.952617 11.4898 0.905949 11.4996 0.858732 11.5C0.81151 11.5004 0.764679
11.4914 0.720971 11.4735C0.677266 11.4556 0.637558 11.4292 0.604165 11.3958C0.570773 11.3624 0.544365 11.3227 0.526484 11.279C0.508601 11.2353 0.499603 11.1885
0.500013 11.1413C0.500424 11.094 0.510235 11.0474 0.528873 11.004C0.547512 10.9606 0.574606 10.9214 0.608573 10.8886L0.608625 10.8886L0.614771 10.8825L5.14368 6.35355L5.49723
6L5.14368 5.64645L0.618506 1.12127C0.55521 1.05447 0.520241 0.96569 0.521042 0.873579C0.521852 0.780331 0.559254 0.691132 0.625193 0.625193C0.691132 0.559254 0.780331 0.521852
0.873579 0.521042C0.96569 0.520241 1.05447 0.55521 1.12127 0.618506L5.64645 5.14368L6 5.49723L6.35355 5.14368L10.8825 0.614771L10.8825 0.614824L10.8886 0.608573C10.9214 0.574606
10.9606 0.547512 11.004 0.528874C11.0474 0.510235 11.094 0.500424 11.1413 0.500013C11.1885 0.499603 11.2353 0.508601 11.279 0.526483C11.3227 0.544365 11.3624 0.570773 11.3958
0.604165C11.4292 0.637558 11.4556 0.677266 11.4735 0.720971C11.4914 0.764679 11.5004 0.81151 11.5 0.858732C11.4996 0.905949 11.4898 0.952617 11.4711 0.996008C11.4525 1.0394 11.4254
1.07864 11.3914 1.11145L11.3914 1.11139L11.3852 1.11754L6.85632 5.64645Z" fill="#878787" stroke="#878787"/>
</svg>
</button>
</div>
<img src="https://static.premai.io/book/grant.jpg" alt="grant cover" />
<div class="modal-text">
<h1>Enter your email to access this book for free</h1>
<p>
We&rsquo;ll send you updates whenever we make major changes<br />
(no spam nor giving your email to anyone else).
</p>
<div class="input-container">
<input type="email" id="email-input" name="EMAIL" placeholder="Enter your email..." />
<input style="display: none;" type="hidden" name="tags" value="2958019" />
<input style="display: none;" type="text" name="b_76d4e3f9cb2c0f0108fb2da88_2c17a51111" tabindex="-1" value="" />
<input type="submit" name="subscribe" id="email-submit" class="button" value="Subscribe" onclick="emailButtonClick()" />
</div>
<p>
This book is open source; you can also read &amp; contribute at<br />
<a href="https://github.com/premAI-io/state-of-open-source-ai" target="_blank"><i class="fa-brands fa-github"></i>&nbsp;premAI-io/state-of-open-source-ai</a>.
</p>
<ul>
<li>Free usage of OpenAl, Anthropic, Cohere, Llama2, and Mistral APIs for 6 months.</li>
<li>Free Fine-tuning jobs for both closed and open-source models.</li>
<li>Free Models Deployment Made Effortless.</li>
</ul>
<a class="btn-apply" href="https://blog.premai.io/announcing-our-startup-grants-program/" target="_blank">Apply Here</a>
</div>
</form>
</div>
</div>
myst_enable_extensions: # https://myst-parser.readthedocs.io/en/latest/using/syntax-optional.html
# needs myst-parser>=0.19 <- https://github.com/executablebooks/MyST-NB/issues/530
Expand Down Expand Up @@ -145,6 +149,8 @@ sphinx:
- https://www.pinecone.io/learn/series/faiss/locality-sensitive-hashing
- https://chat.lmsys.org
- https://platform.openai.com/docs/.*
- https://twitter.com/*
- https://www.reddit.com/*
linkcheck_allowed_redirects:
https://doi.org/.*/.*: https://.*
https://codespaces.new/.*: https://github.com/login.*
Expand Down
136 changes: 0 additions & 136 deletions _static/emails.css

This file was deleted.

Loading

0 comments on commit 6121374

Please sign in to comment.