Skip to content

Commit 1ee0aa2

Browse files
committed
2 parents e88ea3c + 7e8bcca commit 1ee0aa2

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

doc/boards.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static const uint8_t D10 = 1;
3737

3838
If you want to use NodeMCU pin 5, use D5 for pin number, and it will be translated to 'real' GPIO pin 14.
3939

40-
### NodeMCU 1.0 <a name="nodemcu-1-0"></a>
40+
### NodeMCU 1.0
4141

4242
This module is sold under many names for around $6.50 on AliExpress and it's one of the cheapest, fully integrated ESP8266 solutions.
4343

@@ -126,7 +126,7 @@ PL2303-based adapters are known not to work on Mac OS X. See https://github.com/
126126
- **Directly connecting a pin to VCC or GND is not a substitute for a PullUp or PullDown resistor, doing this can break upload management and the serial console, instability has also been noted in some cases.**
127127

128128
### ESP to Serial
129-
![ESP to Serial](https://raw.githubusercontent.com/esp8266/Arduino/esp8266/docs/ESP_to_serial.png)
129+
![ESP to Serial](ESP_to_serial.png)
130130

131131
#### Minimal Hardware Setup for Bootloading only ##
132132
ESPxx Hardware
@@ -158,7 +158,7 @@ ESPxx Hardware
158158
| CH_PD | PullUp | |
159159

160160
### Minimal
161-
![ESP min](https://raw.githubusercontent.com/Links2004/Arduino/esp8266/docs/ESP_min.png)
161+
![ESP min](ESP_min.png)
162162

163163
### Improved Stability
164-
![ESP improved stability](https://raw.githubusercontent.com/Links2004/Arduino/esp8266/docs/ESP_improved_stability.png)
164+
![ESP improved stability](ESP_improved_stability.png)

libraries/ESP8266WebServer/src/detail/RequestHandlersImpl.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,11 @@ class StaticRequestHandler : public RequestHandler {
7777
else if (path.endsWith(".gif")) return "image/gif";
7878
else if (path.endsWith(".jpg")) return "image/jpeg";
7979
else if (path.endsWith(".ico")) return "image/x-icon";
80+
else if (path.endsWith(".svg")) return "image/svg+xml";
8081
else if (path.endsWith(".xml")) return "text/xml";
8182
else if (path.endsWith(".pdf")) return "application/pdf";
8283
else if (path.endsWith(".zip")) return "application/zip";
83-
return "text/plain";
84+
return "application/octet-stream";
8485
}
8586

8687
protected:

package/build_boards_manager_package.sh

+6-5
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ if [ -z "$REMOTE_URL" ]; then
88
echo "REMOTE_URL not defined, using default"
99
fi
1010
echo "Remote: $REMOTE_URL"
11-
11+
pushd ..
1212
# Figure out how will the package be called
1313
ver=`git describe --tags --always`
1414
package_name=esp8266-$ver
1515
echo "Version: $ver"
1616
echo "Package name: $package_name"
1717

1818
# Create directory for the package
19-
outdir=versions/$ver/$package_name
20-
srcdir=$PWD/..
21-
rm -rf versions/$ver
19+
outdir=package/versions/$ver/$package_name
20+
srcdir=$PWD
21+
rm -rf package/versions/$ver
2222
mkdir -p $outdir
2323

2424
# Some files should be excluded from the package
@@ -58,7 +58,7 @@ $SED 's/tools.mkspiffs.path={runtime.platform.path}\/tools\/mkspiffs/tools.mkspi
5858
> $outdir/platform.txt
5959

6060
# Zip the package
61-
pushd versions/$ver
61+
pushd package/versions/$ver
6262
echo "Making $package_name.zip"
6363
zip -qr $package_name.zip $package_name
6464
rm -rf $package_name
@@ -80,3 +80,4 @@ jq ".packages[0].platforms[0].version = \"$ver\" | \
8080
> package_esp8266com_index.json
8181

8282
popd
83+
popd

0 commit comments

Comments
 (0)