summary refs log blame commit diff stats
path: root/make_doc.py
blob: a5c022c933a1b929cee338d2678730c76ae1c977 (plain) (tree)
1
2
3
4
5
6
7
8






                                                                    
                            









                                                              




                                      




                                                                     
#!/usr/bin/python3
"""Generate pydoc documentation and move it to the doc directory.
THIS WILL DELETE ALL EXISTING HTML FILES IN THAT DIRECTORY, so don't
store important content there."""

import pydoc, os, sys
if __name__ == '__main__':
	docdir = 'doc/pydoc'
	os.chdir(sys.path[0])
	try: os.mkdir(docdir)
	except: pass


	for fname in os.listdir(docdir):
		if fname.endswith('.html'):
			os.remove(os.path.join(docdir, fname))

	pydoc.writedocs('.')
	pydoc.writedoc('curses')
	pydoc.writedoc('curses.ascii')
	pydoc.writedoc('os')
	pydoc.writedoc('os.path')
	pydoc.writedoc('sys')

	for fname in os.listdir('.'):
		if fname.endswith('.html'):
			os.rename(fname, os.path.join(docdir, fname))
="w"> * const version, const char * const os); void handle_disco_info(const char *from, GSList *identities, GSList *features); void handle_disco_info_error(const char * const from, const char * const error); void handle_room_list(GSList *rooms, const char *conference_node); void handle_disco_items(GSList *items, const char *jid); void handle_room_invite(jabber_invite_t invite_type, const char * const invitor, const char * const room, const char * const reason); void handle_room_broadcast(const char *const room_jid, const char * const message); void handle_room_subject(const char * const room, const char * const nick, const char * const subject); void handle_room_history(const char * const room_jid, const char * const nick, GTimeVal tv_stamp, const char * const message); void handle_room_message(const char * const room_jid, const char * const nick, const char * const message); void handle_room_join_error(const char * const room, const char * const err); void handle_room_info_error(const char * const room, const char * const error); void handle_room_disco_info(const char * const room, GSList *identities, GSList *features); void handle_room_affiliation_list_result_error(const char * const room, const char * const affiliation, const char * const error); void handle_room_affiliation_list(const char * const room, const char * const affiliation, GSList *jids); void handle_room_affiliation_set_error(const char * const room, const char * const jid, const char * const affiliation, const char * const error); void handle_room_role_list_result_error(const char * const from, const char * const role, const char * const error); void handle_room_role_list(const char * const from, const char * const role, GSList *nicks); void handle_room_role_set_error(const char * const room, const char * const nick, const char * const role, const char * const error); void handle_room_kick_result_error(const char * const room, const char * const nick, const char * const error); void handle_incoming_message(char *barejid, char *resource, char *message); void handle_incoming_private_message(char *fulljid, char *message); void handle_delayed_message(char *fulljid, char *message, GTimeVal tv_stamp); void handle_delayed_private_message(char *fulljid, char *message, GTimeVal tv_stamp); void handle_typing(char *barejid, char *resource); void handle_paused(char *barejid, char *resource); void handle_inactive(char *barejid, char *resource); void handle_activity(char *barejid, char *resource, gboolean send_states); void handle_gone(const char * const barejid, const char * const resource); void handle_subscription(const char *from, jabber_subscr_t type); void handle_contact_offline(char *contact, char *resource, char *status); void handle_contact_online(char *contact, Resource *resource, GDateTime *last_activity); void handle_leave_room(const char * const room); void handle_room_destroy(const char * const room); void handle_room_occupant_offline(const char * const room, const char * const nick, const char * const show, const char * const status); void handle_room_destroyed(const char * const room, const char * const new_jid, const char * const password, const char * const reason); void handle_room_kicked(const char * const room, const char * const actor, const char * const reason); void handle_room_occupent_kicked(const char * const room, const char * const nick, const char * const actor, const char * const reason); void handle_room_banned(const char * const room, const char * const actor, const char * const reason); void handle_room_occupent_banned(const char * const room, const char * const nick, const char * const actor, const char * const reason); void handle_group_add(const char * const contact, const char * const group); void handle_group_remove(const char * const contact, const char * const group); void handle_roster_remove(const char * const barejid); void handle_roster_add(const char * const barejid, const char * const name); void handle_autoping_cancel(void); void handle_carbon(char *barejid, char *message); void handle_message_error(const char * const from, const char * const type, const char * const err_msg); void handle_presence_error(const char *from, const char * const type, const char *err_msg); void handle_xmpp_stanza(const char * const msg); void handle_ping_result(const char * const from, int millis); void handle_ping_error_result(const char * const from, const char * const error); void handle_room_configure(const char * const room, DataForm *form); void handle_room_configuration_form_error(const char * const from, const char * const message); void handle_room_config_submit_result(const char * const room); void handle_room_config_submit_result_error(const char * const room, const char * const message); void handle_muc_self_online(const char * const room, const char * const nick, gboolean config_required, const char * const role, const char * const affiliation, const char * const actor, const char * const reason, const char * const jid, const char * const show, const char * const status); void handle_muc_occupant_online(const char * const room, const char * const nick, const char * const jid, const char * const role, const char * const affiliation, const char * const actor, const char * const reason, const char * const show_str, const char * const status_str); void handle_roster_update(const char * const barejid, const char * const name, GSList *groups, const char * const subscription, gboolean pending_out); void handle_roster_received(void); #endif