Skip to content

Commit b05f3d8

Browse files
committed
Add titles in markdown to each file
1 parent 7935126 commit b05f3d8

36 files changed

+78
-0
lines changed

android/App-functionality.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# App functionality
2+
13
The Wikimedia Commons app offers the following functionality:
24

35
## In-App functionality

android/Category-suggestions-(readme).md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Category suggestions (readme)
2+
13
Three new types of category suggestions were implemented as part of the Outreachy Dec '15 - Mar '16 project:
24

35
# 1. If a picture with geolocation is uploaded, nearby category suggestions are offered based on the categories of other Commons images with similar coordinates.

android/Code-Structure.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Code Structure
2+
13
## Key breakdowns:
24

35
### Activities started within the UI:

android/Code-style.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Code style
2+
13
# Commons Android App Style Guide
24

35
## General coding style

android/Code-walkthrough-for-new-devs-(draft).md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Code walkthrough for new devs (draft)
2+
13
Note: This is only a draft taken from personal notes, please feel free to improve
24

35
### Share: Incoming Intent

android/Contributing-Guidelines.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Contributing Guidelines
2+
13
Thanks for considering to contribute to this project! A few guidelines for
24
people who want to contribute their code to this software are documented
35
here. If you're not sure where to start head on to [this wiki page](https://github.com/commons-app/apps-android-commons/wiki/Volunteers-welcome!).

android/Dependency-Injection.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Dependency Injection
2+
13
## Overview
24

35
At its core, dependency injection is just the principle of `"tell, dont ask"` put into practice; for instance, if a class needs to use an instance of `MediaWikiApi`, it should be handed an instance of the classs rather than reaching out to get it. This has the effect of decoupling code, making it easier to test and reuse.

android/Developer-workflow.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Developer workflow
2+
13
## Working on a change
24

35
1. Ensure nobody else is already working on the issue. You should read the comments on the issue and read through the open pull requests.

android/External-APIs.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# External APIs
2+
13
The Wikimedia Commons Android app uses several external APIs to do its job.
24

35
## List of APIs used

android/Frequently-Asked-Questions.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Frequently Asked Questions
2+
13
1. [Questions about the project](#questions-about-the-project)
24
2. [Copyright questions](#copyright-questions)
35
3. [Technical questions](#technical-questions)

android/Fuzzy-category-search.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Fuzzy category search
2+
13
# Test data
24

35
## Sample generation methodology

android/GSoC-2018-&-Outreachy-16.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# GSoC 2018 Outreachy 16
2+
13
Huge thanks to all students who have sent us proposals for [Google Summer of Code](https://summerofcode.withgoogle.com/) 2018 and Outreachy 16!
24

35
In alphabetical order:

android/GSoC-2019-and-Outreachy-18.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# GSoC 2019 and Outreachy 18
2+
13
Huge thanks to all students who have sent us proposals for [Google Summer of Code](https://summerofcode.withgoogle.com/) 2019 and Outreachy 18!
24

35
In alphabetical order:

android/Getting-app-logs-from-Android-Studio.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Getting app logs from Android Studio
2+
13
Brief walkthrough for users on how to post logs if they are encountering issues.
24

35
1. On your computer, [download](https://developer.android.com/studio/) and [install](https://developer.android.com/studio/install) Android Studio

android/Google-Code-in.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Google Code in
2+
13
# Template
24

35
Title: `Take screenshots of Commons Android app in your native language`

android/Google-Play-store-listing.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Google Play store listing
2+
13
## New Listing (2017):
24

35
[I am drawing heavily on our website for this, thanks Tobias!]

android/How-to-install-and-use-the-app.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# How to install and use the app
2+
13
1. Download **Wikimedia Commons** from the [Google Play Store](https://play.google.com/store/apps/details?id=fr.free.nrw.commons)
24
2. Take a picture of something interesting (see: [What files are OK to upload](https://commons.wikimedia.org/wiki/Commons:Project_scope#Scope_part_1:_Files))
35
3. In your camera app, click to view the picture you just took

android/June-2018-incident.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# June 2018 incident
2+
13
# June 2018 incident - upload-time geotagging
24

35
**Summary:** A label in the app's preferences misrepresented a feature of the app that retrieves and publishes location information when uploading a picture. The label said _"Automatically get current location - Retrieve current location to offer category suggestions if image is not geotagged"_, while the app additionally published the current location of the device as part of the file page it creates. Remedies are being done, including a more appropriate label for the feature, redaction of already published location information, and messages to affected users.

android/Languages.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Languages
2+
13
The Commons app is localized (sometimes partially) to these languages:
24

35
* Abkhazian

android/Libraries-used.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Libraries used
2+
13
* [Quadtree][1]
24
* [ViewPagerIndicator][2]
35
* [Java-HTTP-Fluent][3]

android/Location-based-category-search.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Location based category search
2+
13
Task: Identify the best strategy/APIs to find Commons categories that are within a certain radius of specified GPS coordinates.
24

35
This page will be used to document the results of testing the categories obtained via different APIs/strategies against the benchmark of categories that have been manually entered (by the Commons community or by myself) for each picture.

android/On-Device-Storage.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# On Device Storage
2+
13
Account credentials are encapsulated in an account provider. Currently only one Wikimedia Commons account is supported at a time. (Question: what is the actual storage for credentials?)
24

35
Preferences are stored in Android's SharedPreferences.

android/Passing-an-image-to-the-app.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Passing an image to the app
2+
13
Developers who wish to pass an image from their app to the Wikimedia Commons app can do so using an Intent, just like you would with any other app.
24

35
```java

android/Press-release-[Draft].md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Press release [Draft]
2+
13
As suggested at [#420](https://github.com/commons-app/apps-android-commons/issues/420), we will be working on drafts for press releases here.
24

35
# Press release for third party blogs/sites

android/Privacy-policy.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Privacy policy
2+
13
# Privacy Policy
24

35
The Wikimedia Commons Android app is a free, open-source app developed by grantees and volunteers of the Wikimedia community to allow users to upload content to Wikimedia Commons. This APPLICATION is provided by members of the Wikimedia community and is intended for use as is.

android/Project-maintenance.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Project maintenance
2+
13
# Pull requests and merging workflow
24

35
See [Developer workflow](Developer-workflow.md)

android/Quick-start-guide-for-Developers.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Quick start guide for Developers
2+
13
1. [Download and Install Android Studio][1]
24

35
2. Fork the Git repository.

android/Screen-structure.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Screen structure
2+
13
The Wikimedia Commons app consists of the following screens:
24

35
- Tutorial (4 slides)

android/Setting-up-dev-enviroment.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Setting up dev enviroment
2+
13
Fork the commons repo from github. Now clone this repo to your local machine. Enter the following in terminal (Gitbash for windows users)
24

35
```

android/Software-design-document.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Software design document
2+
13
[WIP]
24

35
[![Architecture](https://upload.wikimedia.org/wikipedia/commons/thumb/0/0c/Commons_Mobile_App_architecture.svg/1000px-Commons_Mobile_App_architecture.svg.png)](https://commons.wikimedia.org/wiki/File:Commons_Mobile_App_architecture.svg)

android/Students.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Students
2+
13
# What
24

35
TODO

android/Technical-Overview.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Technical Overview
2+
13
The general user facing functionality of the app is already documented (see [App Functionality](App-functionality.md)), this document should try to connect that to the actual code in the repo: What code is there and does what?
24

35
## [/app/src/main/java/fr/free/nrw/commons](https://github.com/commons-app/apps-android-commons/tree/master/app/src/main/java/fr/free/nrw/commons)

android/Translating-the-app.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Translating the app
2+
13
Thanks to the translation work of many volunteers this app is available in a multitude of languages.
24

35
Translation of the text content of the Wikimedia Commons Android app happens on the [Commons Android App project](https://translatewiki.net/w/i.php?title=Special:Translate&group=commons-android) on [translatewiki.net](https://translatewiki.net).

android/Tutorial-for-new-users.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Tutorial for new users
2+
13
## New tutorial
24

35
Tutorial and app released under Apache 2.0 license.

android/Volunteers-welcome!.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Volunteers welcome!
2+
13
We are always looking for volunteers, feel free to step in! It's very easy to get started - have a look at the roles that you fancy below. Thanks a lot!
24

35
# Developers

documentationtools/titles.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This script adds a H1 header to each .md file, based off that file's name
2+
# Intended to be used on an export of a GitHub style wiki
3+
for f in *.md
4+
do
5+
title=$(echo $f | sed s/.md//g | sed s/-/\ /g)
6+
echo "Adding title '$title' to $f"
7+
sed -i "1s;^;# $title\n\n;" $f
8+
done

0 commit comments

Comments
 (0)