Skip to content

Commit

Permalink
Merge pull request #1 from JoaoRodrigues/main
Browse files Browse the repository at this point in the history
Add nicer webpage and some tooling to validate content.
  • Loading branch information
eseckel authored Jan 17, 2024
2 parents 5919b10 + 7448640 commit 88d5354
Show file tree
Hide file tree
Showing 12 changed files with 366 additions and 64 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deploy-page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: deploy_page
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: python -m pip install -r requirements.txt
- run: python mkindex.py README.md
- run: mkdocs gh-deploy --force
51 changes: 0 additions & 51 deletions .github/workflows/jekyll-gh-pages.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/validate-url.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: validate_url
on: # yamllint disable-line rule:truthy
pull_request:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: python mkindex.py --validate-only README.md

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
venv/
25 changes: 12 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# AI for Grant Writing
A curated list of resources for using AI to develop more competitive grant applications.

## Table of Contents
- [AI For Grant Writing](#ai-for-grant-writing)
- [Useful Services](#useful-services)
- [Prompt Resources](#prompt-resources)
Expand All @@ -15,17 +14,17 @@ A curated list of resources for using AI to develop more competitive grant appli

## Useful Services

|| Checks Spelling and Grammar | Text Generation | Translation | Mock Review | Image Generation | Free Tier |
|--- |--- |--- |--- |--- |--- |--- |
| [ChatGPT](https://chat.openai.com) | x | x | x | x | x | x |
| [Bard](https://bard.google.com/) | x | x | x | x | | x |
| [Grok](https://grok.x.ai/) | x | x | x | x | | |
| [Copilot](https://copilot.microsoft.com/) | x | x | x | x | x | x |
| [Grammarly](https://www.grammarly.com/) | x | x | | x | | x |
| [Curie](https://www.aje.com/curie/) | x | | x | | | |
| [DeepL](https://www.deepl.com/translator) | | | x | | | x |
| [Midjourney](https://www.midjourney.com) | | | | | x | |
| [Firefly](https://www.adobe.com/products/firefly.html) | | | | | x | x |
| | Checks Spelling and Grammar | Text Generation | Translation | Mock Review | Image Generation | Free Tier |
| :--- | :---: | :---: | :---: | :---: | :---: | :---: |
| [ChatGPT](https://chat.openai.com) | x | x | x | x | x | x |
| [Bard](https://bard.google.com/) | x | x | x | x | | x |
| [Grok](https://grok.x.ai/) | x | x | x | x | | |
| [Copilot](https://copilot.microsoft.com/) | x | x | x | x | x | x |
| [Grammarly](https://www.grammarly.com/) | x | x | | x | | x |
| [Curie](https://www.aje.com/curie/) | x | | x | | | |
| [DeepL](https://www.deepl.com/translator) | | | x | | | x |
| [Midjourney](https://www.midjourney.com) | | | | | x | |
| [Firefly](https://www.adobe.com/products/firefly.html) | | | | | x | x |

## Prompt Resources

Expand Down Expand Up @@ -87,4 +86,4 @@ missing and how I can improve.

# Contributing

We encourage and welcome contributions! Please have a look at the [contribution guidelines](CONTRIBUTING.md) first.
We encourage and welcome contributions! Please have a look at the [contribution guidelines](https://github.com/eseckel/ai-for-grant-writing/blob/main/CONTRIBUTING.md) first.
46 changes: 46 additions & 0 deletions docs/_dev_notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# How to build/update the website

## Notes
- You should not have to use this on a regular basis. The repository is setup to
run the validation for each pull request and the deployment whenever you accept
a pull request or push a commit directly to the main branch. You should use this
to test changes locally.
- Your repository should be setup to serve pages from the gh-pages branch.

## Requirements
- Python
- Git

## Steps

### Cloning the repository
```bash
git clone https://github.com/eseckel/ai-for-grant-writing
```

### Installing the framework
```bash
cd ai-for-grant-writing

# Create a virtual environment not to mess with system Python
python3 -m venv venv
source venv/bin/activate

# Install requirements
python -m pip install -r requirements.txt

# Test
mkdocs serve # check browser for https://localhost:8000

# To quit mkdocs serve do Ctrl-C
```

### Deploying a new version of the website
```
source venv/bin/activate # You need the environment from the previous step
# After making changes to README.md
python3 mkindex.py
mkdocs serve # To check changes
```
83 changes: 83 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
---
toc_depth: 3
---
# AI for Grant Writing
A curated list of resources for using AI to develop more competitive grant applications.



## Useful Services

| | Checks Spelling and Grammar | Text Generation | Translation | Mock Review | Image Generation | Free Tier |
| :--- | :---: | :---: | :---: | :---: | :---: | :---: |
| [ChatGPT](https://chat.openai.com) | x | x | x | x | x | x |
| [Bard](https://bard.google.com/) | x | x | x | x | | x |
| [Grok](https://grok.x.ai/) | x | x | x | x | | |
| [Copilot](https://copilot.microsoft.com/) | x | x | x | x | x | x |
| [Grammarly](https://www.grammarly.com/) | x | x | | x | | x |
| [Curie](https://www.aje.com/curie/) | x | | x | | | |
| [DeepL](https://www.deepl.com/translator) | | | x | | | x |
| [Midjourney](https://www.midjourney.com) | | | | | x | |
| [Firefly](https://www.adobe.com/products/firefly.html) | | | | | x | x |

## Prompt Resources

### Prompt Collections
- [85+ ChatGPT Prompts for Grant Writing](https://aihabit.net/chatgpt-prompts-for-grant-writing/#google_vignette)
- [ChatGPT Prompts For Academic Research Writing](https://clickup.com/templates/ai-prompts/research-writing)

### Prompt Engineering
- [Google's Tips to enhance your prompt-engineering abilities](https://cloud.google.com/blog/products/application-development/five-best-practices-for-prompt-engineering)
- [Best practices for prompt engineering with OpenAI API](https://help.openai.com/en/articles/6654000-best-practices-for-prompt-engineering-with-openai-api)
- [Awesome GPT Prompt Engineering ](https://github.com/snwfdhmp/awesome-gpt-prompt-engineering)

### Quick Prompts

#### To enhance text clarity
```
As a non-native English speaker, kindly help me revise the following text for improved understanding
and clarity. Please check for spelling and sentence structure errors and suggest alternatives.
```

```
What suggestions do you have to enhance the clarity of my text?
```

```
Please identify any parts of my writing that may be difficult for a lay audience to understand.
```

#### To make text more compelling
```
Please provide feedback on my writing style and how I can make it more persuasive and compelling
for the grant reviewer.
```
```
I’m trying to hook my reader with a strong introduction. Can you suggest a more captivating first
sentence to draw them in from the start?
```
#### To improve structure and flow of text
```
I want to improve the overall structure of my Specific Aims. What tips do you have to structure it
more effectively?”
```
#### To better align with the funding agency’s mission
```
I’m working on a postdoctoral fellowship application. Can you please review my closing paragraph
and suggest ways to better align it with the American Heart Association’s mission?
```
#### To better align text with review criteria
```
I am applying to <insert fellowship name>. Please provide me feedback on how well I am
addressing this review criteria: <insert specific review criteria>, and suggestions for what I am
missing and how I can improve.
```

## Grant Writing-Specific Resources
- [Best Kept Secrets to Winning Grants](https://www.nature.com/articles/545399a)
- [The Anatomy of a Specific Aims Page](https://biosciencewriters.com/NIH-Grant-Applications-The-Anatomy-of-a-Specific-Aims-Page.aspx)
- [R01 Countdown: Tools for Writing Concise and Compelling Grants](https://purl.stanford.edu/yy394gb6954)

# Contributing

We encourage and welcome contributions! Please have a look at the [contribution guidelines](https://github.com/eseckel/ai-for-grant-writing/blob/main/CONTRIBUTING.md) first.
20 changes: 20 additions & 0 deletions docs/overrides/partials/toc-item.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<li class="md-nav__item">
<a href="{{ toc_item.url }}" class="md-nav__link">
<span class="md-ellipsis">
{{ toc_item.title }}
</span>
</a>

<!-- Table of contents list -->
{% if toc_item.children %}
<nav class="md-nav" aria-label="{{ toc_item.title | striptags }}">
<ul class="md-nav__list">
{% for toc_item in toc_item.children %}
{% if not page.meta.toc_depth or toc_item.level <= page.meta.toc_depth %}
{% include "partials/toc-item.html" %}
{% endif %}
{% endfor %}
</ul>
</nav>
{% endif %}
</li>
5 changes: 5 additions & 0 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* Hide redundant titles */
.md-typeset h1,
label.md-nav__title {
display: none;
}
26 changes: 26 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
site_name: AI for Grant Writing
site_url: https://awesome-python.com
site_description: A curated list of resources for using AI to develop more competitive grant applications.
site_author: Elizabeth Seckel
repo_name: eseckel/ai-for-grant-writing
repo_url: https://github.com/eseckel/ai-for-grant-writing
theme:
name: material
icon:
repo: fontawesome/brands/github
palette:
primary: purple
accent: blue grey
features:
- toc.follow
- toc.integrate
- content.code.copy
markdown_extensions:
- tables
custom_dir: docs/overrides
extra_css:
- stylesheets/extra.css
plugins:
- exclude:
glob:
- "*.txt"
Loading

0 comments on commit 88d5354

Please sign in to comment.