Skip to content

Commit

Permalink
Reorganized style guides and IDE files
Browse files Browse the repository at this point in the history
Moved IDE style guide files to separate folder and renamed style guide web
files to match their corresponding languages
  • Loading branch information
calcmogul committed Jan 2, 2018
1 parent d08f472 commit 0f4d4e8
Show file tree
Hide file tree
Showing 13 changed files with 90 additions and 1,011 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ This repository contains our style guides for C++ and Java code, various IDE sup

Anything submitted to a wpilibsuite project needs to follow the code style guides outlined here. For details about the style, please see the contributors document [here](CONTRIBUTING.md#coding-guidelines).

Style configuration files for IDEs are in the [ide](ide) folder. The style guides for C++, Java, and Python are named `cppguide`, `javaguide`, and `pyguide` respectively.

## Setup

See the `wpiformat` Python package [README](wpiformat/README.rst).
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions cppguide.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>WPILib C++ Style Guide</title>
<link rel="stylesheet" type="text/css" href="include/styleguide.css">
<script language="javascript" src="include/styleguide.js"></script>
<link rel="stylesheet" type="text/css" href="cppguide.css">
<script language="javascript" src="cppguide.js"></script>
</head>
<body onload="initStyleGuide();">
<div id="content">
Expand Down
4 changes: 2 additions & 2 deletions include/styleguide.js → cppguide.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function LinkifyHeader(header, fileName, sizePixels) {
link.href = '#' + header.id;
link.alt = 'link to ' + header.id;
link.innerHTML =
'<img src="include/' + fileName + '"' +
'<img src="' + fileName + '"' +
' width=' + sizePixels +
' height=' + sizePixels +
' style="float:left;position:relative;bottom:5px;">';
Expand All @@ -263,7 +263,7 @@ function LinkifyHeadersForTag(tagName) {
header = headers[j];
if (!hasClass(header, 'ignoreLink') && ('id' in header)) {
if (header.id != '') {
LinkifyHeader(header, 'link.png', 21);
LinkifyHeader(header, 'guidelink.png', 21);
header.style.left = '-46px';
header.style.position = 'relative';
}
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
166 changes: 83 additions & 83 deletions javaguide.html

Large diffs are not rendered by default.

Binary file removed javaguidelink.png
Binary file not shown.
File renamed without changes.
2 changes: 1 addition & 1 deletion pyguide.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<TITLE>Google Python Style Guide</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK HREF="https://www.google.com/favicon.ico" type="image/x-icon" rel="shortcut icon">
<LINK HREF="styleguide.css" type="text/css" rel="stylesheet">
<LINK HREF="pyguide.css" type="text/css" rel="stylesheet">
<SCRIPT language="javascript" type="text/javascript">

function GetElementsByName(name) {
Expand Down
Loading

0 comments on commit 0f4d4e8

Please sign in to comment.