I'd like to set up a new site to replace drupaldocs.org. I hear all outstanding issues with the API module have been fixed so we can go ahead with this. A few questions:

-What theme?
-I'm guessing OSL needs to do the initial setup of the domain.
-Once it is done KJ should set up a redirect to the new site.

CommentFileSizeAuthor
#14 api.module32.44 KBdries

Comments

kbahey’s picture

Please please make it http://api.drupal.org

Crell’s picture

- api.drupal.org

- Same theme as drupaldocs.org uses now. (Whatever the name is; I can never remember.)

- I've no knowledge of the network changes involved on OSL's network, so I'll pass on those.

dries’s picture

Updating JonBob's api.module is probably a first required step. It is still stuck at Drupal 4.4, or something.

killes@www.drop.org’s picture

The module appears to be updated to cvs.

dries’s picture

I asked OSL to setup the domain.

kbahey’s picture

Domain as in drupaldocs.org? Or subdomain as in api.drupal.org?

I think the "docs" part is very misleading, since it only means "developer documentation". It is not accurate in that sense either since many other documents in the handbook are valuable developer docs.

So, api.drupal.org sounds like the best option so far.

chx’s picture

Khalid, it's easy to answer: subdomain under drupal.org, api.drupal.org as the drupaldocs.org name is owned by Kjartan and the site is still on his machine and not on the farm which OSU OSL maintains.

drumm’s picture

Steven, can you make me a bluebeach header with 'Drupal API'?

I've disabled user accounts on the new site since there is no need for them. Let me know if you want an account and I'll make one. I'm thinking Dries, Jonbob, Steven, and Killes will want them.

drumm’s picture

Anyone want to fix this issue? http://drupal.org/node/52041

drumm’s picture

I actually ended up posting 3 other issues: http://drupal.org/project/issues/api. One is critical, the api.css one.

Other things I'll be doing:
- Putting some links back to Drupal.org up. Everyone okay with copying the links off of Drupaldocs.org?
- Building a search block (shouldn't this be in api.module?).
- Making sure cron is running.

dries’s picture

A logo is available in the logo-directory. It just needs to be installed.

dries’s picture

The API search block on drupaldocs.org is part of the api.module:

function api_block($op, $delta = 0, $edit = array()) {
  switch ($op) {
    case 'list':
      $blocks = array(
        0 => array('info' => t('API search block'))
      );
      return $blocks;
    case 'view':
      drupal_set_html_head('<style type="text/css">@import url(modules/api/api.css);</style>');
      $block = array(
        'subject' => t('API Search'),
        'content' => api_lookup_form()
      );
      return $block;
  }
}
drumm’s picture

Auto updating of the sources should be working now. Whoever recieves error messages for cron should let me know if there are issues. It is running 4 times daily.

The CVS version of api.module doesn't have a block hook.

How is the fancy URL redirecting working on drupaldocs?

dries’s picture

StatusFileSize
new32.44 KB

Here is a copy of the api.module that we use on drupaldocs.org.

dries’s picture

Looks like a custom 404 handler to me ... You'll want to double-check the code for security. Using $_SERVER['QUERY_STRING'] can be dangerous when outputed.

drumm’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)