Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Sprint 2 2020 changes #66

Merged
merged 58 commits into from
Feb 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
59f9a73
Add addTrailingSlashToSlug utility
Chalarangelo Jan 8, 2020
ab59d37
Update Anchor to add trailing slash if needed
Chalarangelo Jan 8, 2020
4cf2d2e
Safeguard Tag atom for empty tags
Chalarangelo Jan 14, 2020
4fc8dfd
Remove capitalization logic from Tag atom
Chalarangelo Jan 18, 2020
78d3da1
Update EXPERTISE_LEVELS
Chalarangelo Jan 18, 2020
37c0edd
Introduce tag transformer
Chalarangelo Jan 18, 2020
074db32
Add custom transformation logic for tags
Chalarangelo Jan 18, 2020
9cba367
Update reducers to use the tag transformer
Chalarangelo Jan 18, 2020
3f4872e
Use tag transformer in snippet context parser
Chalarangelo Jan 18, 2020
cf63fd2
Use tag transformer in snippet index transformation
Chalarangelo Jan 18, 2020
7b9b251
Fix failing tests
Chalarangelo Jan 18, 2020
18daf64
Install gatsby-plugin-catch-links
Chalarangelo Jan 21, 2020
52e0144
Update expertise scores when ranking
Chalarangelo Jan 20, 2020
1c469fe
Configure dynamic image imports
Chalarangelo Jan 10, 2020
2e52f20
Extract full width card section logic to mixin
Chalarangelo Jan 10, 2020
7309885
Allow social-only CTAs
Chalarangelo Jan 11, 2020
7bc2cc3
Pass source node to resolver
Chalarangelo Jan 10, 2020
2c7a337
Add 30blog content source
Chalarangelo Dec 23, 2019
1c42e1f
Add resolver and reducer for blog
Chalarangelo Dec 23, 2019
23c3a85
Handle blog attributes in GraphQL
Chalarangelo Dec 23, 2019
0f40e65
Add blog-specific query to GraphQL
Chalarangelo Dec 30, 2019
c3d8b48
Add images query to GraphQL
Chalarangelo Jan 10, 2020
b1ab0ee
Query images from GraphQL
Chalarangelo Jan 10, 2020
64dfd40
Parse image context and custom context for blog
Chalarangelo Jan 10, 2020
db91434
Update type definitions for blog
Chalarangelo Jan 27, 2020
1cfb7f7
Update page creation for blog pages
Chalarangelo Dec 30, 2019
2bf2e25
Handle blog page metadata in SnippetPage
Chalarangelo Dec 30, 2019
aadbd8a
Parse blog property in listing metas
Chalarangelo Jan 14, 2020
03eb033
Pass all snippets to snippet page creation
Chalarangelo Jan 20, 2020
d442891
Add logic for language in tag transformer
Chalarangelo Jan 20, 2020
c929d47
Handle language for blog
Chalarangelo Jan 20, 2020
6a7fffc
Enable blog snippets in snippet listings
Chalarangelo Jan 20, 2020
2ab35db
Handle blog snippets in ranking engine
Chalarangelo Jan 20, 2020
90f1793
Handle blogs in recommendation engine
Chalarangelo Jan 20, 2020
3ba9828
Customize SnippetList intro message
Chalarangelo Jan 14, 2020
f55df8b
Add context to PreviewCard molecule
Chalarangelo Jan 14, 2020
7b182bc
Add custom snippet card type for blog
Chalarangelo Jan 18, 2020
81df87f
Update specs, clear warnings
Chalarangelo Jan 27, 2020
03bb828
Merge remote-tracking branch 'origin/integrate-blog' into dev-sprint2…
Chalarangelo Jan 27, 2020
6ddf8fc
Make blog unlisted
Chalarangelo Jan 27, 2020
39240a4
Delete storybook leftovers
Chalarangelo Jan 27, 2020
862ce10
Add SVG icons
Chalarangelo Jan 27, 2020
520259c
Add icon font generation tools
Chalarangelo Jan 27, 2020
06f6a9e
Replace generate-icon-background with icon font
Chalarangelo Jan 27, 2020
3c1bcc9
Deprecate most of the generate-icon-background code
Chalarangelo Jan 28, 2020
2ebb4ce
Fix broken specs due to icon classes
Chalarangelo Jan 28, 2020
b0fc6f8
Add icons for all content sources
Chalarangelo Jan 28, 2020
f287fc9
Parse icon from content configs
Chalarangelo Jan 28, 2020
b1c5351
Configure content ordering
Chalarangelo Jan 28, 2020
eabfb13
Update language/tag listing anchors
Chalarangelo Jan 28, 2020
b942442
Update listing anchors markup and styles
Chalarangelo Jan 28, 2020
bd2550c
Render listing anchors for all sources in Home page
Chalarangelo Jan 28, 2020
b8f4e55
Change logic for rendering listing anchors
Chalarangelo Jan 28, 2020
2c785b9
Replace search in home page with additional recommendations
Chalarangelo Jan 30, 2020
a416b89
Change script to not regenerate icon font every run
Chalarangelo Jan 30, 2020
54b9c89
Change order of list and search in navigation bar
Chalarangelo Jan 30, 2020
b6e6afc
Merge pull request #71 from 30-seconds/linking-anchors-v2
Chalarangelo Jan 30, 2020
c9e7b12
Bump content sources
Chalarangelo Feb 1, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@
[submodule "content/sources/30csharp"]
path = content/sources/30csharp
url = https://github.com/30-seconds/30-seconds-of-csharp
[submodule "content/sources/30blog"]
path = content/sources/30blog
url = https://github.com/30-seconds/30-seconds-blog
4 changes: 0 additions & 4 deletions .storybook/addons.js

This file was deleted.

49 changes: 0 additions & 49 deletions .storybook/config.js

This file was deleted.

47 changes: 0 additions & 47 deletions .storybook/contexts.js

This file was deleted.

1 change: 0 additions & 1 deletion .storybook/presets.js

This file was deleted.

6 changes: 0 additions & 6 deletions .storybook/preview-head.html

This file was deleted.

36 changes: 0 additions & 36 deletions .storybook/theme.js

This file was deleted.

50 changes: 0 additions & 50 deletions .storybook/viewports.js

This file was deleted.

35 changes: 0 additions & 35 deletions .storybook/webpack.config.js

This file was deleted.

Binary file added assets/icons.woff2
Binary file not shown.
6 changes: 3 additions & 3 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ module.exports = {
],
// Snippet ranking engine parameters
rankingEngine: {
tagScorelimit: 12,
tagScoreLimit: 12,
expertiseScoreLimit: 8,
timeScoreLimitMultiplier: 0.6,
beginnerExpertiseScore: 6,
beginnerExpertiseScore: 3,
intermediateExpertiseScore: 8,
advancedExpertiseScore: 2,
advancedExpertiseScore: 5,
firstSeenScorePercentage: 0.47,
lastUpdateScorePercentage: 0.36,
updateCountScorePercentage: 0.17,
Expand Down
38 changes: 38 additions & 0 deletions content/configs/30blog.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
export default {
name: '30 seconds Blog',
dirName: '30blog',
repoUrl: 'https://github.com/30-seconds/30-seconds-blog',
snippetPath: 'blog_posts',
requirables: [
'blog_data/snippets.json',
// 'blog_data/blog_authors.json',
],
slug: 'blog',
reducer: 'blogReducer',
resolver: 'blogResolver',
isBlog: true,
featured: 1,
theme: {
backColor: '#1f253d',
foreColor: '#edf0fc',
iconName: 'blog',
},
biasPenaltyMultiplier: 1.01,
images: {
name: 'blog_images',
path: 'blog_images',
},
tagScores: {
'javascript': 5,
'react': 4,
'css': 4,
'array': 4,
'list': 4,
'object': 4,
'python': 3,
'webdev': 3,
'devtools': 2,
'csharp': 2,
'php': 1,
},
};
3 changes: 2 additions & 1 deletion content/configs/30code.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ export default {
],
slug: 'js',
reducer: 'es6Reducer',
featured: 1,
featured: 2,
theme: {
backColor: '#f6d854',
foreColor: '#392f31',
iconName: 'js',
},
biasPenaltyMultiplier: 1.02,
tagScores: {
Expand Down
3 changes: 2 additions & 1 deletion content/configs/30csharp.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ export default {
'snippet_data/snippets.json',
],
slug: 'c-sharp',
featured: 4,
featured: 6,
theme: {
backColor: '#672179',
foreColor: '#ffffff',
iconName: 'csharp',
},
biasPenaltyMultiplier: 1.02,
tagScores: {
Expand Down
1 change: 1 addition & 0 deletions content/configs/30css.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default {
theme: {
backColor: '#3f4de4',
foreColor: '#ffffff',
iconName: 'css',
},
biasPenaltyMultiplier: 1.02,
tagScores: {
Expand Down
2 changes: 2 additions & 0 deletions content/configs/30php.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ export default {
'snippet_data/snippets.json',
],
slug: 'php',
featured: 7,
theme: {
backColor: '#8b9bd6',
foreColor: '#2a2843',
iconName: 'php',
},
biasPenaltyMultiplier: 1.06,
tagScores: {
Expand Down
3 changes: 2 additions & 1 deletion content/configs/30python.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ export default {
'snippet_data/snippets.json',
],
slug: 'python',
featured: 2,
featured: 4,
theme: {
backColor: '#3c77a9',
foreColor: '#ffffff',
iconName: 'python',
},
biasPenaltyMultiplier: 1.02,
tagScores: {
Expand Down
1 change: 1 addition & 0 deletions content/configs/30react.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default {
theme: {
backColor: '#282c34',
foreColor: '#61dafb',
iconName: 'react',
},
biasPenaltyMultiplier: 1.08,
tagScores: {
Expand Down
Loading