Skip to content

Commit c25ea43

Browse files
committed
documention
1 parent 7ef1468 commit c25ea43

12 files changed

+31
-17
lines changed

README.md

+17-4
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,20 @@ GSoC: Google Summer of Code; 'Oscar of the Coding World', as they popularly call
66

77
## Link to website: https://sparsh1212.github.io/gsocanalyzer/
88

9-
109
### Home Page
10+
1111
![1](./readme-assets/homePage.png)
1212

1313
### Search by organisation name
14+
1415
![1](./readme-assets/searchByOrganisation.png)
1516

1617
### Search by tech-stack
18+
1719
![1](./readme-assets/searchByTechStack.png)
1820

19-
## Bookmark
21+
## Bookmark
22+
2023
### Bookmarking feature allows you to save your favorite organisation and then quickly access them in the browser.
2124

2225
Steps to bookmark an organization.
@@ -37,9 +40,8 @@ You can reset all your bookmarks by clicking the Reset Bookmarks button, which i
3740

3841
![1](./readme-assets/resetBookmark.png)
3942

40-
41-
4243
# Setup:
44+
4345
- Clone the repo
4446
- cd into the repo directory
4547
- Run: `npm install`
@@ -51,3 +53,14 @@ You can reset all your bookmarks by clicking the Reset Bookmarks button, which i
5153
- Create a new branch named <your_feature>
5254
- Commit changes and make a PR.
5355
- PRs are welcome.
56+
57+
# Updating Data:
58+
59+
- Setup gsoc analyzer using the steps mentioned above
60+
- In `./scrape.py` replace 2023 with the {year}+1
61+
- Run: `python scrape.py`
62+
- Replace the data in ./data/finalData.json with the new data in ./data.json(produced after successfully running scrape script)
63+
- Identify duplicate entries of organizations in data obtained through scraping (produced due to slightly different name in various year of gsoc)
64+
- for each duplicate org Run : `python merge.py`
65+
- add {year} to labels in `./components/OrganisationCard.js`
66+
- for charts in `./components/launcher/` add {year} to the labels and add the data for the year

readme-assets/BookmarkBar.png

-23.5 KB
Loading

readme-assets/BookmarkNotAdded.png

-3.2 KB
Loading
-3.26 KB
Loading

readme-assets/homePage.png

10.4 KB
Loading

readme-assets/resetBookmark.png

9.8 KB
Loading
41.6 KB
Loading

readme-assets/searchByTechStack.png

20.5 KB
Loading

scrape.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import html5lib
32
from bs4 import BeautifulSoup
43
import json

src/components/Launcher/OrganizationChart.js

-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ import {
1212
} from "chart.js";
1313
import "../../css/graphcss.css";
1414

15-
// Chart.defaults.plugins.tooltip.enabled = true;
16-
// Chart.defaults.plugins.legend.position = "bottom";
17-
1815
const OrganizationChart = (props) => {
1916
Chart.defaults.font.size = props.font;
2017
Chart.register(

src/components/Launcher/ParticipantChart.js

-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ import {
1010
Tooltip,
1111
} from "chart.js";
1212
import "../../css/graphcss.css";
13-
// Chart.defaults.plugins.tooltip.enabled = true;
14-
// // console.log(defaults.plugins.legend.position);
15-
// Chart.defaults.plugins.legend.position = "bottom";
16-
1713
const ParticipantChart = (props) => {
1814
Chart.defaults.font.size = props.font;
1915
Chart.register(CategoryScale, BarElement, PointElement, Legend, Tooltip);

src/components/OrganisationCard.js

+14-5
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,22 @@ const OrganisationCard = ({ key, orgData, bookmarked, setBookmarked }) => {
9191
options={{
9292
maintainAspectRatio: false,
9393
scales: {
94-
yAxes: [
95-
{
96-
ticks: {
97-
precision: 0,
94+
y: {
95+
ticks: {
96+
precision: 0,
97+
font: {
98+
size: 12,
9899
},
99100
},
100-
],
101+
},
102+
x: {
103+
ticks: {
104+
precision: 0,
105+
font: {
106+
size: 12,
107+
},
108+
},
109+
},
101110
},
102111
}}
103112
/>

0 commit comments

Comments
 (0)