hi_stmap 0.2.1

hi_stmap

This make sitemap.xml from local files. It also check files that are not linked or disabled links.

Usage

See example.dart

Class

Constructor

C_mkstmap(String top URL of homepage, String top directory of local files, List<String> options)

option

-sitemap=fullpath of sitemap.xml in local disk
-time=difference with the standard time
-work=directory of backup and logfile

Metohd

int make()

return error code. 0 is no error

more information

[see http://studyhallweb.info/freesoft/dartmkstmap.html]

example/example.dart

/* ***********************************************************
example for hi_stmap Version 0.2.1

2014-05-31
hi_tag	http://studyhallweb.info/
-------------------------------------------------------------
ルートディレクトリに robots.txt があること
*********************************************************** */
import '../lib/hi_stmap.dart';
//import 'package:mkstmap/hi_stmap.dart';

void main(List<String> arguments) {
	int iErr = 0;	// Error Nomber

	// arguments[2 and more] convert into options
	List<String> options = new List();
	if (arguments.length > 2) {
		options.length = arguments.length - 2;
		for(int i = 0; i < options.length; i++) {
			options[i] = arguments[i + 2];
		}
	} else {
		options.add('-sitemap=sitemap.xml');
	}

	// used hi_stmap library
	C_mkstmap cmkmap = new C_mkstmap(arguments[0], arguments[1], options);
	iErr = cmkmap.make();

	print('End program:$iErr');
}

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  hi_stmap: "^0.2.1"

2. Install it

You can install packages from the command line:

$ pub get

Alternatively, your editor might support 'pub get'. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:hi_stmap/hi_stmap.dart';

Platforms

About

It make sitemap.xml from local files. It check files that are not linked or disabled links.

Author

Email hi.tagoo@gmail.com hi_tag

Homepage

studyhallweb.info/

Documentation

www.dartdocs.org/documentation/hi_stmap/0.2.1/

Uploader

hi.tagoo@gmail.com

Published

May 31, 2014

Share