Skip to content

Commit 12aa25f

Browse files
committed
try fix pub width again
1 parent 0ac0406 commit 12aa25f

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed

README.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,31 @@
1-
![logo](/src/assets/logo-bright.svg)
2-
31
# Tools for Learning, Design and Research
42

5-
This repository is for the tldr group website
6-
7-
The website can be found [here](https://tldr-group.github.io/)
3+
This repository is for the [tldr group website](https://tldr-group.github.io/)
84

95
## Content Management:
106

11-
This repo has been written such that to add new content (publicatons, projects, team members), only the corresponding `.json` files need to be edited, commited and merged onto main.
7+
This repo has been written such that to add new content (publications, projects, team members), only the corresponding `.json` files need to be edited, commited and merged onto main.
128

13-
1. Create a new branch
9+
### 1. Create a new branch
1410

1511
```bash
1612
git checkout new_branch_name
1713
```
1814

19-
2. Edit the `.json`, commit changes to your branch
15+
### 2. Edit the respective `.json`, commit changes to your branch.
16+
17+
The `.jsons` are in the [`src/content`](src/content/) folder:
18+
19+
- New project: `src/content/projects.json`
20+
- New paper/preprint: `src/content/publications.json`
21+
- New team member: `src/content/team.json`
22+
- New video: `src/content/videos.json`
2023

21-
3. Merge the branch onto `main`, either via the terminal or by creating a pull request on github.com. NB: this requires approval.
24+
When adding a new entry, **it must have all the fields (_e.g,_ "titles", "desc", ...) for that type of content** - look at other examples in the file for which fields are needed. If adding new images/gifs, these need to be placed in `public/content/images` and referenced correctly in the `.json`.
25+
26+
### 3. Merge the branch onto `main`
27+
28+
Do this either via the terminal or by creating a pull request on github.com. NB: this requires approval. Once merged, a GitHub Actions will trigger which will build and deploy the site. This typically takes ~10s
2229

2330
Check out `docs/` for explanations of how the website works!
2431

@@ -47,8 +54,6 @@ yarn start
4754

4855
## TODO:
4956

50-
- minor fixes: better zod parsing
51-
5257
- add Sheares!
5358
- add new publications: llama (rsc), evoxels, vulture, image rep (adv sci), hr-dv2 (adv int sys), BIL, prompt to protocol
5459
- add new projects: BIL, isb/isg, vulutre, evoxels

src/components/Publications.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ const PublicationComponent = ({ publicationData }: { publicationData: Publicatio
3535
) : (
3636
<span>{innerContent}</span>
3737
)}
38-
<a href={link} target="_blank" rel="noopener noreferrer"></a>
3938
</div>
4039
);
4140
};

src/styles.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
--toggle-h: 24px;
5252
--toggle-thumb-l: 18px;
5353
--toggle-thumb-offset: 3px;
54-
--pub-list-w: 70%;
54+
--pub-list-w: 90%;
5555
}
5656
}
5757

@@ -329,8 +329,10 @@ input:checked + .slider:before {
329329
}
330330

331331
.pub-list {
332-
max-width: --var(--pub-list-w);
332+
max-width: var(--pub-list-w);
333333
padding-left: 0.75em;
334+
overflow-wrap: anywhere;
335+
word-break: break-word;
334336
}
335337

336338
.pub-list, li a{

0 commit comments

Comments
 (0)