Skip to content

Commit 0accf61

Browse files
authored
Merge branch 'master' into issue_finder_dyn
2 parents a6f46a9 + 6fded79 commit 0accf61

File tree

18 files changed

+711
-421
lines changed

18 files changed

+711
-421
lines changed

Pipfile.lock

+63-64
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

content/blog/authors/krysal/contents.lr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ name: Krystle Salazar
55
md5_hashed_email: f36bcb2678c0c0845f8adf634c4d764b
66
---
77
about:
8-
Krystle is a Software Developer from Venezuela, working on **Reimplement [CC’s Legal Database](https://github.com/creativecommons/caselaw) using Django** as part of Outreachy Summer round of 2020. You can find her as `@krysal` on the CC Slack.
8+
Krystle is a Software Developer from Venezuela, working on **Reimplement [CC’s Legal Database](https://github.com/creativecommons/legaldb) using Django** as part of Outreachy Summer round of 2020. You can find her as `@krysal` on the CC Slack.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
title: Add New Sections, Descriptions, Help Texts, Code Examples, Schemas, and Serializers
2+
3+
---
4+
categories:
5+
cc-catalog-api
6+
gsod
7+
gsod-2020
8+
open-source
9+
community
10+
---
11+
author: ariessa
12+
---
13+
series: gsod-2020-cccatalog-api-usage-guide
14+
---
15+
pub_date: 2020-10-21
16+
---
17+
body:
18+
19+
Welcome to my third blog entry! For week 5 and 6, I added new sections, descriptions, help texts, code examples, schemas, and serializers. I was so productive these past two weeks.
20+
21+
22+
### Week 5
23+
For this week, I managed to add a lot of stuff into the documentation.
24+
I figured out how to add help texts to classes and how to create serializers.
25+
I also managed to move all code examples under response samples.
26+
In order to do this, I created a new class called CustomAutoSchema to add [x-code-samples](https://github.com/Redocly/redoc/blob/master/docs/redoc-vendor-extensions.md#x-codesamples).
27+
Other stuff that I did include creating new sections such as “Register and Authenticate” and “Glossary”.
28+
The hardest part of this week is probably trying to figure out how to add request body examples and move code examples.
29+
30+
31+
### Week 6
32+
33+
For week 6, I added another section called Contribute that provides a todolist to start contributing on Github.
34+
I also wrote and published this blog post.
35+
36+
----
37+
38+
All caught up!
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
title: Add Response Samples and Descriptions for API Endpoints
2+
---
3+
categories:
4+
cc-catalog-api
5+
gsod
6+
gsod-2020
7+
open-source
8+
community
9+
---
10+
author: ariessa
11+
---
12+
series: gsod-2020-cccatalog-api-usage-guide
13+
---
14+
pub_date: 2020-10-09
15+
---
16+
body:
17+
18+
Well, hello again 👋! For week 3 and week 4, I added response samples and descriptions for API endpoints. Writing documentation feels a bit like coding at this point because I need to read a lot about drf-yasg, dig through issues and questions at Github / Stackoverflow to ensure that I don’t ask redundant (or even stupid) questions.
19+
20+
### Week 3
21+
22+
Week 3 was quite hectic. I moved back to my hometown during week 3.
23+
Took 3 days off to settle my stuff and set up a workspace.
24+
I worked on my GSoD project for only 2 days, Monday and Tuesday.
25+
I managed to create response samples for most API endpoints.
26+
Had a monthly video call with Kriti this week.
27+
28+
### Week 4
29+
30+
For this week, I reviewed what I’ve done and what I haven’t to estimate new completion time.
31+
Thank god, I have a buffer week in my GSoD timeline and deliverables.
32+
So yeah, all is good in terms of completion time.
33+
I started to write descriptions for API endpoints.
34+
Submitted first PR and published blog entry.
35+
36+
----
37+
38+
Over and out.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
title: Vocabulary Site Updates (v1)
2+
---
3+
categories:
4+
cc-vocabulary
5+
gsod
6+
gsod-2020
7+
---
8+
author: nimishbongale
9+
---
10+
series: gsod-2020-vocabulary-usage-guide
11+
---
12+
pub_date: 2020-10-26
13+
---
14+
body:
15+
16+
Hello there! Well well well. It has been an eventful first few weeks, to say the least! Let's gauge my progress, shall we?
17+
18+
## Vocabulary Site Updates (Edition 1/many more to come)
19+
20+
### What I've been upto
21+
22+
I've mainly got myself invested in a survey of the existing documentation that vocabulary currently possesses, and find places where it could be made better. After clearing those issues out, I began building the main landing site for `Vocabulary`, `Vue-vocabulary` and `Fonts`. It wasn't particularly difficult to establish the necessary workflows as I had done something similar before. During the process of designing the basic structure of the site, I came across a few instances where I felt we needed new/improved components & I discussed the same with my team over on the sprint calls. The design of the site is nearly done. I'm also building the site parallelly & seeking approval from the CC Design Team. I've gotten myself involved in multiple other community contributions to CC as well across multiple of our repositories.
23+
24+
### What I've learnt
25+
- Knowing the previously existing code in your project is of serious essence. It's important to understand the code styles, structure & activity of the code that you are dealing with.
26+
- Be patient! Its fine to delay something if it makes sense to have it logically accomplished only after certain other tasks are done & dusted with.
27+
- How essential it is to write _neat code_ is something that's not spoken too often. (I wonder why...)
28+
- I always thought VueJS sets up SPA's by default. I'm surprised you need to configure it additionally to do just that!
29+
- Storybook is just a really nifty OSS with great community support!
30+
31+
### Other community work tidbits
32+
- I've been working on the Dark Mode (a much awaited feature, at least for me!) for our storybooks with some support from our community. It should be up and running shortly!
33+
- Fixed some formatting bugs in the `README.md` & suggested changes wrt to `npm v7` considerations.
34+
- Fixed storybook components docs for 2 features.
35+
- Raised a ticket for a component to render markdown text within vocabulary itself.
36+
- Raised a few other issues for potential hacktoberfest contributions.
37+
38+
<p align="center">
39+
<strong>Thank you for your time! To be continued...</strong>
40+
</p>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
title: Content Creation Phase: WordPress Base Theme Usage Guide
2+
---
3+
categories:
4+
cc-wp-base-theme
5+
gsod
6+
gsod-2020
7+
---
8+
author: JackieBinya
9+
---
10+
series: gsod-2020-wordpress-base-theme-usage-guide
11+
---
12+
pub_date: 2020-11-10
13+
---
14+
body:
15+
For the past couple of weeks we have been actively creating content for the Creative Commons WordPress Base Theme Usage Guide. Currently the draft content is under final review before it is migrated to the main docs site.
16+
17+
## Our Strategy
18+
Our main goal in creating the docs is to create rich, intuitive, engaging, and beautifully presented community facing documentation for the Creative Commons WordPress Base Theme.
19+
20+
In alignment with the defined goal, our core focus is to create the docs collaboratively.
21+
22+
The CC WordPress team consists of I, Jacqueline Binya, Hugo Solar and Timid Robot Zehta. Although our team is small it is quite diverse. It consists of a diverse mix of technical skills: I am a junior developer whereas Hugo and Timid are way senior. We also have non-native and native English speakers.
23+
24+
Diversity is important as we hope to create a high quality product that caters for everyone.
25+
26+
My role as the tech writer/frontend developer is to create the content: write the documentation, build the docs site and also to create all illustrative media.
27+
28+
During the content creation phase, the first step involved creating the skeleton of the actual docs site. We created a git branch called _docs_ within the [creative-commons/wp-base-theme](https://github.com/creativecommons/wp-theme-base) repository. All content related to the documentation is persisted in that branch. So,please feel free to contribute. We then used [JamDocs](https://gridsome.org/starters/jamdocs/), a [Gridsome](https://gridsome.org/) theme to quickly scaffold the site. We had to adapt the theme so as to make it meet our own specific needs, this involved overhauling the styles and changing the functionality of some of the features in the theme. After that was completed, we then created a [Google Doc](https://docs.google.com/document/d/1yfAQGG70T8BUhZYWglAlQ_lTo4_tYpyjhPN5FsZnSvI/edit?usp=sharing) we use for collaboratively writing the draft content for the docs site.
29+
30+
## Tech Stack
31+
As it was mentioned we used [Gridsome](https://gridsome.org/) a static generator for [Vuejs](https://vuejs.org/). We chose Gridsome because:
32+
33+
- We wanted to lower the barrier of entry to contributing:
34+
- Gridsome/Vuejs community is very active, help is but a click away.
35+
- The Gridsome official documentation is very resourceful and well maintained.
36+
37+
- Gridsome is highly flexible: The content for the actual documentation is written in [Markdown](https://www.markdownguide.org/getting-started/) but using [@gridsome/vue-remark](https://gridsome.org/plugins/@gridsome/vue-remark), which is a Gridsome plugin, we are able to use javascript in Markdown. We intend to include a copy to the clipboard Vuejs component in the site.
38+
39+
- Time Constraint: This project is a short running project which has to be completed in a 3 month period. Through the use of JamDocs, a Gridsome templating theme as well various plugins it was easy and fast to get started we were able to add more functionality to the theme with minimal effort.
40+
41+
- Ease of integrating [CC Vocabulary](https://cc-vocabulary.netlify.app/) with Gridsome: it is a requirement that the general aesthetics of all front facing Creative Commons applications is derived from the CC Vocabulary Design System. Major cons for using a design system include the ensuring uniformity in design for all front facing CC products.
42+
43+
## Tools Used
44+
- [Figma](https://www.figma.com/):
45+
46+
![An example of illustrative media](image.png)
47+
48+
Figma was used to make assets(banners, logos and illustrations) in the theme. The illustrative media was created with accessibility in mind and all the topography used in the illustrative assets was derived from the CC Vocabulary.
49+
50+
- [VokoScreenNG](https://linuxecke.volkoh.de/vokoscreen/vokoscreen.html): an open source screencast recording tool used to record all the screen cast demos available in the docs site.
51+
52+
- [ShortCut](https://shotcut.org/): an open source video editing tool.
53+
54+
## What comes next ?
55+
56+
After the final review is completed and all feedback implemented we will migrate all the content to the main docs site.
57+
58+
_Stay tuned for an update about the launch of the CC WP Base Theme Docs site._
59+
Loading

content/blog/entries/legal-database-a-new-beginning/contents.lr

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ It has only been a week so we're just starting, so next task to do sooner are:
5353
### How you can help
5454

5555
We are still discussing the new image before start coding so these are some options if you want to get involved:
56-
- Suggest improvements to designs/UX or new features joining the discussion on the [`#cc-dev-legal-database`](https://creativecommons.slack.com/channels/cc-dev-legal-database) Slack channel or on the [github](https://github.com/creativecommons/caselaw) project.
56+
- Suggest improvements to designs/UX or new features joining the discussion on the [`#cc-dev-legal-database`](https://creativecommons.slack.com/channels/cc-dev-legal-database) Slack channel or on the [github](https://github.com/creativecommons/legaldb) project.
5757
- Contribute directly to the CC's Vocabulary design system on [github](https://github.com/creativecommons/vocabulary).
5858
- Submit a case or a scholarship related to CC licenses on the [current site](https://labs.creativecommons.org/caselaw/contribute/).
5959

6060
**CC Legal Database** is my Outreachy project for this summer, under the guidance of Director of Engineering [Kriti Godey](https://creativecommons.org/author/kriticreativecommons-org/) and Core Systems Manager [Timid Robot Zehta](https://creativecommons.org/author/timidcreativecommons-org/), they are very supportive and the CC community is notable welcoming.
6161

62-
This is the first post of a series so stay tuned if you're interested to know more.
62+
This is the first post of a series so stay tuned if you're interested to know more.

content/blog/entries/legal-database-features/contents.lr

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ While developing the mentioned functionalities I was also in charge of adding au
3939
<figcaption>Example of page obtained when requesting a case detail that is not published or doesn't exist.</figcaption>
4040
</figure>
4141

42-
In this process of adding automated tests I wanted them to run on every pull request created, so I learned how to write a GitHub Action with a PostgreSQL service, the DBMS used in this case. Previously, I had already created a job for linting, so I needed to add another one to run in parallel to save time. This service provided by GitHub is pretty cool and useful, it opens up a world of possibilities, from running third party services like [Lighthouse test](https://github.com/GoogleChrome/lighthouse-ci) to even [send tweets](https://github.com/gr2m/twitter-together)! If you want to see the GitHub Action file configurated for this project, check it out: [`.github/workflows/main.yml`](https://github.com/creativecommons/caselaw/blob/31c3002a7860d78f3fdb464150c5c1b2f8bb86fc/.github/workflows/main.yml).
42+
In this process of adding automated tests I wanted them to run on every pull request created, so I learned how to write a GitHub Action with a PostgreSQL service, the DBMS used in this case. Previously, I had already created a job for linting, so I needed to add another one to run in parallel to save time. This service provided by GitHub is pretty cool and useful, it opens up a world of possibilities, from running third party services like [Lighthouse test](https://github.com/GoogleChrome/lighthouse-ci) to even [send tweets](https://github.com/gr2m/twitter-together)! If you want to see the GitHub Action file configurated for this project, check it out: [`.github/workflows/main.yml`](https://github.com/creativecommons/legaldb/blob/31c3002a7860d78f3fdb464150c5c1b2f8bb86fc/.github/workflows/main.yml).
4343

4444
### Accessibility
4545

@@ -67,4 +67,4 @@ Some other features were implemented but only relevant to our registered users,
6767

6868
After reviewing all done this last month I see significant progress has been made, I have learned many things along the way: more of what Django and its ecosystem offers, about accessibility, continuous integration in Heroku and GitHub, and more. One of the things that makes me most happy is being able to be contributing and being part of an Open Source organization, knowing how it moves and works inside, something I never imagine before.
6969

70-
Time flies and there are less than two weeks left to finish, so if you want to follow the project here is the repository to suggest improvements or report bugs, or if you prefer something less technical you can join us on the [slack channel](https://creativecommons.slack.com/channels/cc-dev-legal-database).
70+
Time flies and there are less than two weeks left to finish, so if you want to follow the project here is the repository to suggest improvements or report bugs, or if you prefer something less technical you can join us on the [slack channel](https://creativecommons.slack.com/channels/cc-dev-legal-database).

content/community/contents.lr

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ The channels most relevant to CC's developer community are:
4242
<td><a href="https://github.com/creativecommons/cccatalog-dataviz">CC Catalog visualizations.</a></td>
4343
</tr>
4444
<tr>
45-
<td><code>#cc-dev-legal-database</code></td>
46-
<td><a href="https://labs.creativecommons.org/caselaw/">CC Legal Database.</a></td>
45+
<td><code>#cc-dev-legaldb</code></td>
46+
<td><a href="https://github.com/creativecommons/legaldb">CC Legal Database.</a></td>
4747
</tr>
4848
<tr>
4949
<td><code>#cc-dev-license-chooser</code></td>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
_model: page
2+
---
3+
_template: page-with-toc.html
4+
---
5+
title: Python Guidelines
6+
---
7+
description: These Python Guidelines (style guide) empower the community to
8+
focus on the intent of the code and work together with a minimum of friction.
9+
---
10+
body:
11+
12+
13+
## Code Formatting
14+
15+
### Overview
16+
17+
All Python code must be formatted using [Black][black], *the uncompromising
18+
Python code formatter*. Each project should contain a `pyproject.toml`
19+
configuration file that limits line length to 79 characters.
20+
21+
[black]: https://github.com/psf/black
22+
23+
### Examples
24+
25+
- Black configuration (`pyproject.toml`): [GitHub Search · org:creativecommons
26+
filename:pyproject.toml][blackconfig]
27+
- GitHub Actions workflow: [GitHub Search · org:creativecommons "pipenv run
28+
black"][blackactions]
29+
30+
[blackconfig]: https://github.com/search?q=org%3Acreativecommons+filename:pyproject.toml
31+
[blackactions]: https://github.com/search?q=org%3Acreativecommons+%22pipenv+run+black%22&type=code
32+
33+
34+
## Style and Quality
35+
36+
### Overview
37+
38+
All Python code must be checked using [flake8][flake8], *a python tool that
39+
glues together pep8, pyflakes, mccabe, and third-party plugins to check
40+
the style and quality of some python code.*
41+
42+
[flake8]: https://gitlab.com/pycqa/flake8
43+
44+
### Conflicts with Black
45+
46+
Where flake8 conflicts with Black, the flake8 check should be skipped. For
47+
example, there are instances where black formats code that generates flake8
48+
warning for [Whitespace before ':' (E203)][e203].
49+
50+
[e203]: https://www.flake8rules.com/rules/E203.html
51+
52+
53+
### Examples
54+
55+
- flake8 configuration (`.flake8`): [GitHub Search · org:creativecommons
56+
filename:.flake8][flake8conf]
57+
- flake8 skip E203 warning: [GitHub Search · org:creativecommons "noqa:
58+
E203"][skipe203]
59+
- GitHub Actions workflow: [GitHub Search · org:creativecommons "pipenv run
60+
flake8"][flake8actions]
61+
62+
[flake8conf]: https://github.com/search?q=org%3Acreativecommons+filename:.flake8
63+
[skipe203]: https://github.com/search?q=org%3Acreativecommons+%22noqa%3A+E203%22&type=code
64+
[flake8actions]: https://github.com/search?q=org%3Acreativecommons+%22pipenv+run+flake8%22&type=code
65+
66+
67+
## Development Environment
68+
69+
### Overview
70+
71+
Please work to minimize the number of development related technologies. This
72+
helps minimize the overhead of contributing to multiple projects. Most of our
73+
projects use either [Pipenv][pipenv], the Python Development Workflow for
74+
Humans, or [docker-compose][dockercompose], a tool for defining and running
75+
multi-container Docker applications.
76+
77+
[pipenv]: https://github.com/pypa/pipenv
78+
[dockercompose]: https://docs.docker.com/compose/
79+
80+
81+
### Examples
82+
83+
- Pipenv configuration: [GitHub Search · org:creativecommons
84+
filename:Pipfile][pipenvconf]
85+
- Docker-compose example: [docker-compose.yml for cccatalog][dockercomposeconf]
86+
and the [related README.md][relatedreadme]
87+
88+
[pipenvconf]: https://github.com/search?q=org%3Acreativecommons+filename:Pipfile
89+
[dockercomposeconf]: https://github.com/creativecommons/cccatalog/blob/master/src/cc_catalog_airflow/docker-compose.yml
90+
[relatedreadme]: https://github.com/creativecommons/cccatalog#development-setup-for-airflow-and-api-puller-scripts
91+
92+
93+
## Additional Guidance
94+
95+
Thankfully, Black removes a lot of style work and worry. Where there is room
96+
for developer discretion, the following guides are excellent resources:
97+
98+
- [Google Python Style Guide][googlestyle]
99+
- [Code Style — The Hitchhiker's Guide to Python][hitchhikers]
100+
101+
[googlestyle]: https://google.github.io/styleguide/pyguide.html
102+
[hitchhikers]: https://docs.python-guide.org/writing/style/

databags/community_team_members.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
}
188188
],
189189
"name": "Legal Database",
190-
"repos": "caselaw"
190+
"repos": "legaldb"
191191
},
192192
{
193193
"members": [

0 commit comments

Comments
 (0)